Detecting outcome of parsing
"Callum Jamieson" <[email protected]>
| Newsgroups | gmane.comp.parsers.spirit.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a parser set up for a command based language which is entered via a command line. This is all working fine. As the user enters the command I would like to issue feedback to the user as to the correctness of the command syntax written so far and provide feedback at the point where the user tries to enter something that would not successfully parse. provide a beep rather than accepting the keystroke. What I really need is to submit the command to the parser as it is assembled and I need a status which says yes parses ok up until the end of input but needs more input. The bool returned from parse returns true if the command would parse to successful completion. I want a status which says it parses successfully up to the end of input but needs more input. Anybody know of the best way of achieving this with the spirit parser Many thanks, Kind Regards, Callum. ------------------------------------------------------------------------------ _______________________________________________ Spirit-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spirit-general