[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Recursive parsing"

From: Xinan Tang
Subject: "Recursive parsing"
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?




Xinan Tang

Senior MTS

Xambala Inc

2025 Gateway Place, Suite 130

San Jose, CA 95110

Ph # (408)-436-2208   


reply via email to

[Prev in Thread] Current Thread [Next in Thread]