|
From: | Xinan Tang |
Subject: | "Recursive parsing" |
Date: | Thu, 6 Mar 2003 16:34:03 -0800 |
Hi 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? Thanks Xinan Tang Senior MTS Xambala Inc Ph #
(408)-436-2208 |
[Prev in Thread] | Current Thread | [Next in Thread] |