Parser, Generator for Java with the following requirements

后端 未结 7 1698
天命终不由人
天命终不由人 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:13

    For a language that simple, JFlex might suffice. It's similar to JLex but faster (which might also mean less readable, but I've not seen JLex's output).

    It is a lexer, not a parser, but it is built to interface easily with CUP or BYacc/J. And again, for a simple language, it might be easier to just write your own parser (I've done this before).

提交回复
热议问题