osa1 / lexgen

A fully-featured lexer generator, implemented as a proc macro
MIT License
63 stars 7 forks source link

Add an example language using lalrpop as a parser #46

Closed MiSawa closed 2 years ago

MiSawa commented 2 years ago

This change adds an example language that uses lexgen as the lexer and lalrpop as the parser. It's in a new crate, since I wasn't able to find a way to add lalrpop code generation logic that's triggered only on build of examples/, especially without invoking some build script in all the library users' environment.

Please feel free to tweak things, change the directory structure, rename, or whatever you like (including just reject the PR of course!).