You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wanted to test something simple at first. I'd like to test a program that only start with the word 'fsm' and it out an error saying "<missing 'fsm'>"
Make sure you select the "Lexer" tab and clear out the contents. You did not, which is why you get the error message "<missing 'fsm'>".
Make sure you have a whitespace rule that shunts spaces to the off-channel. WS: [ \t\n] -> channel(HIDDEN);
Make sure you use the +-operator in the definition of ID. ID: Letter+ ; not ID: Letter ;
Make sure you use an EOF-terminated start rule in order to avoid the parser not reading all the input on failure. fsm: 'fsm' ID EOF;. If you do all three changes I listed before this fourth suggestion, and give fsm Test foobar as input, the parse will succeed, but not fail on foobar.
Hi,
Just wanted to test something simple at first. I'd like to test a program that only start with the word 'fsm' and it out an error saying "<missing 'fsm'>"
the grammar to be tested:
The simple test is:
fsm Test
The text was updated successfully, but these errors were encountered: