« Return to Thread: Javacc Eof problem.

Re: Javacc Eof problem.

by Artur Rataj :: Rate this Message:

Reply to Author | View in Thread

Hello.

If you want the parser to exit after <INSERT>, make it simply the last token by deleting <EOF>.

You'll still need to enter \r, so that the console flushes the line buffer.


When I enter input at the console the console does not exit for the <EOF>
tag. For Example for the above program I enter: insert

Now the console just stands there and doesn't provide me with the result. I
know I am making a mistake here with the "/r" key as I have allowed the
parser to skip this. Now I have no clue how to exit from my user input
console. Please help me to understand this.


 « Return to Thread: Javacc Eof problem.