|Date:||Thu, 6 Mar 2003 16:34:03 -0800|
In O’reilly book “ Lex & yacc “ written by John R. Levine etc., it discussed a way to support recursive parsing, i.e. during parsing grammar A yyparse() is called again to parse grammar B. This is very typical in parsing a HTML file, in which some script program may be embedded in the same HTML file. However the way that is suggested is to manually rename some C variables and make them local to yyparse() (page 209 -210 in the book).
Has anyone tried to support recursive parsing in bison, especially writing a grammer for HTML and its script languages?
Ph # (408)-436-2208
|[Prev in Thread]||Current Thread||[Next in Thread]|