Re: Statement at a time parsing with yacc

chris@mks.com.ca (Chris Retterath)
Wed, 11 Dec 1991 20:57:35 GMT

          From comp.compilers

Related articles
Statement at a time parsing with yacc przemek@viewlogic.com (1991-12-06)
Re: Statement at a time parsing with yacc bart@cs.uoregon.edu (1991-12-10)
Re: Statement at a time parsing with yacc bliss@sp64.csrd.uiuc.edu (1991-12-10)
Re: Statement at a time parsing with yacc chris@mks.com.ca (1991-12-11)
Statement at a time parsing with yacc compres!chris@crackers.clearpoint.com (1991-12-12)
Re: Statement at a time parsing with yacc d87-jse@nada.kth.se (1991-12-17)
| List of all articles for this month |
Newsgroups: comp.compilers
From: chris@mks.com.ca (Chris Retterath)
Keywords: yacc, parse, OOP
Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA
References: 91-12-036 91-12-050
Date: Wed, 11 Dec 1991 20:57:35 GMT

Regarding statement at a time parsing with YACC:


Our (commercial) MKS LEX & YACC package, as of release 2.6b, allows C++
code generation. The generated code makes up an object class yy_parse,
with a member function yyparse(). The state of the parser is encapsulated
in class yy_parse.


This means that you can issue a YYRETURN(n), where n is not 0 or 1, to
cause yyparse() to return. If you re-call yyparse(), it continues parsing
from that point on. To start a new parse, call yyreset() first.


Chris Retterath
Mortice Kern Systems Inc
chris@mks.com.ca
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.