Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top