Related articles |
---|
Parser theory resources joeri.vankelst@softhome.be (Joeri Vankelst) (2003-01-04) |
Re: Parser theory resources Martin.Waldenburg@T-Online.de (Martin Waldenburg) (2003-01-07) |
Re: Parser theory resources andreas.gieriet@externsoft.ch (Andreas Gieriet) (2003-01-07) |
Re: Parser theory resources simonb@webone.com.au (Simon Burton) (2003-01-12) |
From: | Andreas Gieriet <andreas.gieriet@externsoft.ch> |
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 |
Joeri,
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 ;-)
HTH
Andi
Joeri Vankelst schrieb:
> Could anyone tell me where I could find a theoretical explenation of a
> parser using the visitor method?
--
Andreas Gieriet mailto:andreas.gieriet@externsoft.ch
eXternSoft GmbH http://www.externsoft.com/
Zurlindenstrasse 49 phone:++41 1 454 3077
CH-8003 Zurich/SWITZERLAND fax: ++41 1 454 3078
Return to the
comp.compilers page.
Search the
comp.compilers archives again.