4 ms·
> Have you coded the lexer/parser from scratch Yes. Here is the lexer: https://github.com/rochus-keller/BUSY/blob/main/bslex.c https://github.com/rochus-keller
by Rochus 3y ago
> Have you coded the lexer/parser from scratch
Yes. Here is the lexer: https://github.com/rochus-keller/BUSY/blob/main/bslex.c https://github.com/rochus-keller/BUSY/blob/main/bslex.c
and here is the parser: https://github.com/rochus-keller/BUSY/blob/main/bsparser.c https://github.com/rochus-keller/BUSY/blob/main/bsparser.c
and here is the language specification: http://software.rochus-keller.ch/busy_spec.html http://software.rochus-keller.ch/busy_spec.html
I also developed and checked the EBNF in parallel using my EbnfStudio tool; this tool could also generate a parser, but since I'm using much of the Lua VM infrastructure a manual parser implementation was more straight-forward .
- HeitorFM 3y agoImpressive. Gona take a detailed look later. Thanks for the references. And congratulations on the hero effort again !