hoaproject / Compiler

The Hoa\Compiler library.
https://hoa-project.net/
453 stars 47 forks source link

Unrecognized Token in Lexer always reports Line 1? #98

Open dantleech opened 5 years ago

dantleech commented 5 years ago

:wave: The lexer always reports Line 1 when it encounters an unrecognized token:

https://github.com/hoaproject/Compiler/blob/master/Llk/Lexer.php#L151

This is particularly problematic as it the file being parsed has 100s of lines. Guess this is also related to #97

Hywan commented 5 years ago

I will work on this. Thanks for the issue!

ohader commented 3 years ago

@dantleech Did not spot this issue early, I've created a duplicate in #111 - find corresponding change and new result there