fsprojects / FsLexYacc

Lexer and parser generators for F#
http://fsprojects.github.io/FsLexYacc/
MIT License
203 stars 68 forks source link

smooth the language and update instructions in the json example doc #196

Closed dawedawe closed 3 months ago

dawedawe commented 3 months ago

I left out the inclusion of signature files on purpose as the lexer signature currently needs some manual editing to be valid.

dawedawe commented 3 months ago

I would have guessed that the let int = should also be in the { } block. Any idea if that is the case? Did you happen to run the local sample?

Thanks for the review. The regex macros should really go after the top code. One can see that also from https://github.com/fsprojects/FsLexYacc/blob/21bd8dbc42de7ff97a79b8502c29f1830b2c8d90/src/FsLex.Core/fslexpars.fsy#L24-L27

Moving the regex macros to the top code would cause the lexer generation to err out.

nojaf commented 3 months ago

Gotcha, thanks!