Posted By:
Alexei_Matushevskii
Posted On:
Monday, April 7, 2008 10:12 PM
Good day ANTLRs I have a question - i need to parse data not from fixed file or string, last say user enters data in console, program read every character and pass it to ANTLR - if some rule finally applies - it dose some action, if no we still way for new key pressing. In other words i would like to parse data from Socket's Stream. My first suggestion was to implement my own ANTLRStream. but as i found CommonTokenStream requiers all data to be passed before any parsing will start. May i missed some thing and ANTLR classes covers my task. Please, every help or hints will be helpful. Regards.
More>>
Good day ANTLRs
I have a question - i need to parse data not from fixed file or string, last say user enters data in console, program read every character and pass it to ANTLR - if some rule finally applies - it dose some action, if no we still way for new key pressing.
In other words i would like to parse data from Socket's Stream.
My first suggestion was to implement my own ANTLRStream. but as i found CommonTokenStream requiers all data to be passed before any parsing will start.
May i missed some thing and ANTLR classes covers my task.
Please, every help or hints will be helpful.
Regards.
<<Less