HLBuf : A crate I wrote to ease writting lexers and parsers

Hi !

I've dived in rust this week and I wanted to use it to write a lexer and parser, but I realized that a lot of it involved reading from a source (a file for the lexer, and the lexer itself for the parser) and buffering it while I make a decision. So I decided to write a crate that does it !

The code is here and the doc is here.

I'm not sure it will be very useful to anyone but I will greatly appreciate any comment you can make on the code.

1 Like