Re: Parser theory resources

Andreas Gieriet <>
7 Jan 2003 23:31:08 -0500

          From comp.compilers

Related articles
Parser theory resources (Joeri Vankelst) (2003-01-04)
Re: Parser theory resources (Martin Waldenburg) (2003-01-07)
Re: Parser theory resources (Andreas Gieriet) (2003-01-07)
Re: Parser theory resources (Simon Burton) (2003-01-12)
| List of all articles for this month |

From: Andreas Gieriet <>
Newsgroups: comp.compilers
Date: 7 Jan 2003 23:31:08 -0500
Organization: eXternSoft GmbH
References: 03-01-019
Keywords: parse
Posted-Date: 07 Jan 2003 23:31:08 EST


I assume you are talking about visitor PATTERN.
The visitor pattern is not directly used for parsing the data.
It may be used to traverse the syntax tree that is created by the parser.

E.g., for a specific application, I've once implemented a verilog parser
in C++: each class parsed itself and created in this way a syntax tree of the
given verilog data.
For linking the syntax tree (resolving names) and for semantic checks,
I employed the visitor pattern.

Not a theoretical explanation, though ;-)



Joeri Vankelst schrieb:
> Could anyone tell me where I could find a theoretical explenation of a
> parser using the visitor method?

Andreas Gieriet
eXternSoft GmbH
Zurlindenstrasse 49 phone:++41 1 454 3077
CH-8003 Zurich/SWITZERLAND fax: ++41 1 454 3078

Post a followup to this message

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