Вопрос

Lex includes a function yymore() that concatenates the next recognized input expression to the current input string.

JLex, which implements Lex for Java (and is not the same package as jflex, to my knowledge), does not mention yymore() in its documentation. Does yymore() work in JLex?

Это было полезно?

Решение

No.

From a Coursera forum (this was also my experience):

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, Tim McIver

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top