News for hackers. Stuff that matters.
Re:The Lemon Parser Generator by dunham on Thursday August 25, 2022 @03:50PM (#32599098)
Another tangentially related tool that I recently learned about is "BNFC":

    Given a Labelled BNF grammar the tool produces:
 
    - an abstract syntax implementation in the target language,
    - a case skeleton for the abstract syntax in the target language,
    - a pretty-printer in the target language,
    - an Alex, JLex, or Flex lexer generator file ,
    - a Happy, CUP, or Bison parser generator file, and
    - a LaTeX file containing a readable specification of the language.
Targeting C, Haskell, Agda, C, C++, Java, or OCaml.

Might be fun to expand on this to generate tree-sitter, highlight.js, or a vscode extension.

http://bnfc.digitalgrammars.com/

There are no comments on this comment yet.