pg@bsg.com (Peter Garst) (03/19/91)
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. Peter Garst P.O. Box 390018, Mountain View CA 94039 USA -- Send compilers articles to compilers@iecc.cambridge.ma.us or {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.