Closed hachi8833 closed 7 years ago
This will be fixed after we introduce finite state machine in #131
@hachi8833 I just fixed this in a very naive way, see https://github.com/goby-lang/goby/commit/3204bce2ab429d4c3e2e0570fc700289f6313ce4.
And actually this can't be tested since this issue should be reported when lexing
, and currently lexer
doesn't have any error report mechanism so I can only use panic
.
I'm going to close this one because the requirement for lexer
's error report is another new issue.
Happened to find that the following code makes Goby stop responding:
Just to create the test code for the error cases: