Question

I would like to insert a token right before EOF during lexing. Is this possible with antlr3 (C-target)?

Was it helpful?

Solution

You could override the nextToken() function and return your virtual token under the specific condition you have. Without going to the runtime I see no way to do this, however.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top