Eolian/Lexer: fix EOF issue.

When a new line was added before the last } in a .eo file, the parsing
was resulting in an error. It was due to the fact that some pointer
indicating the eof was not set when the parsing was done from memory.
This commit is contained in:
Daniel Zaoui 2014-03-11 10:05:02 +02:00
parent 7d8059e4c5
commit 0f80ed9008
2 changed files with 274 additions and 270 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1075,6 +1075,8 @@ eo_tokenizer_mem_walk(Eo_Tokenizer *toknz, const char *source, char *buffer, uns
toknz->pe = toknz->p + len;
toknz->eof = toknz->pe;
%% write exec;
if ( toknz->cs == %%{ write error; }%% )