Parser, Generator for Java with the following requirements

后端 未结 7 1701
天命终不由人
天命终不由人 2020-12-09 23:25

I am looking for a parser generator for Java that does the following: My language project is pretty simple and only contains a small set of tokens.

Output in pure R

7条回答
  •  难免孤独
    2020-12-10 00:06

    I had good experience SableCC.

    It works different from most generators, in that you're given a AST/Visitor model that you extend (via inheritance).

    I can't comment on the "quality" of its code in terms of readability (it's been a while since I've used it), but it does have the quality that you don't have to read the code at all. Just the code in your subclass.

提交回复
热议问题