|Parsing one sentence at a time firstname.lastname@example.org (1991-03-18)|
|From:||email@example.com (Peter Garst)|
|Keywords:||yacc, debug, ydb|
|Date:||Mon, 18 Mar 91 11:18:42 PST|
Thomas Vaught asks:
> Is there a way in which I can use yacc to parse a grammar
> one sentence, a production which makes up a sentence, at a time?
Our product, ydb, is a 100% backward compatible upgrade to yacc which
does this, among other things. You can call return from any action,
and continue the parse by calling yyparse() again. For example, we
did a C preprocessor this way; each time you call yyparse() it returns
one token in the input stream.
P.O. Box 390018, Mountain View CA 94039 USA
Return to the
Search the comp.compilers archives again.