chapelure icon indicating copy to clipboard operation
chapelure copied to clipboard

Example lexer and parser

Open Kleidukos opened this issue 2 years ago • 2 comments

There should be an example lexer and parser included in the repo.

Kleidukos avatar Apr 22 '22 08:04 Kleidukos

What would the ideal complexity for something like that be? I worry that too complex a language will distract from the error-reporting stuff, but too simple and there won't be many interesting kinds of errors to report.

We should try to think of some interesting errors to report, and make a language to lex/parse based on that :)

sofia-m-a avatar Apr 25 '22 16:04 sofia-m-a

@sofia-m-a A R⁵RS parser/lexer would be appropriate I think.

If you're feeling fancy, something with significant whitespace as well but that's a whole can of worms :|

Kleidukos avatar Apr 25 '22 18:04 Kleidukos