Lex 包含一个函数 yymore()
,它将下一个识别的输入表达式连接到当前输入字符串。
JLex 实现了 Java 版 Lex(据我所知,它与 jflex 不是同一个包),在其 documentation 中没有提及 yymore()
。 yymore()
在 JLex 中工作吗?
最佳答案
没有。
来自 Coursera 论坛(这也是我的经验):
The middle of section 4 of the Lex manual shows the use of a yymore() method to ease parsing of string literals. This method does not seem to be available in JLex.
https://class.coursera.org/compilers-003/forum/thread?thread_id=223 、蒂姆·麦克莱弗
关于java - JLex 是否包含 yymore 函数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21869482/