We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 12 months ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
我真的很喜欢 ANTLR,尽管如果您只需要执行标记化,它可能会相当重量级 - 但如果您需要一个词法分析器/解析器,特别是在 Java 中。
I really like ANTLR, although it may be quite heavyweight if you only need to perform tokenisation - but it's great if you need a lexer/parser, particularly in Java.
虽然jdk里已经包含了,但是你有没有看过java .util.Scanner?我前段时间也用过JFlex,发现它相当不错。
Although it is included in the jdk, have you looked at java.util.Scanner? I have also used JFlex some time ago and found it quite good.