Re: Has anyone hand-written a scanner/parser module?

Robert A Duff <bobduff@shell01.TheWorld.com>
Sun, 23 Nov 2008 17:30:21 -0500

          From comp.compilers

Related articles
[13 earlier articles]
Re: Has anyone hand-written a scanner/parser module? gene.ressler@gmail.com (Gene) (2008-11-17)
Re: Has anyone hand-written a scanner/parser module? arnold@skeeve.com (2008-11-18)
Re: Has anyone hand-written a scanner/parser module? sh006d3592@blueyonder.co.uk (Stephen Horne) (2008-11-18)
Re: Has anyone hand-written a scanner/parser module? charlesb.cca@mpowercom.net (Charles E. Bortle, Jr.) (2008-11-18)
Re: Has anyone hand-written a scanner/parser module? r3jjs@yahoo.com (Jeremy J Starcher) (2008-11-19)
Re: Has anyone hand-written a scanner/parser module? armelasselin@hotmail.com (Armel) (2008-11-19)
Re: Has anyone hand-written a scanner/parser module? bobduff@shell01.TheWorld.com (Robert A Duff) (2008-11-23)
Re: Has anyone hand-written a scanner/parser module? bobduff@shell01.TheWorld.com (Robert A Duff) (2008-11-23)
Re: Has anyone hand-written a scanner/parser module? charlesb.cca@mpowercom.net (Charles E. Bortle, Jr.) (2008-11-24)
Re: Has anyone hand-written a scanner/parser module? charlesb.cca@mpowercom.net (Charles E. Bortle, Jr.) (2008-11-24)
Re: Has anyone hand-written a scanner/parser module? jmvdveer@xs4all.nl (Marcel van der Veer) (2008-11-25)
Re: Has anyone hand-written a scanner/parser module? baikaishiuc@gmail.com (xianwei) (2008-11-27)
Re: Has anyone hand-written a scanner/parser module? d_j_v@mac.com (Dustin Voss) (2008-11-29)
| List of all articles for this month |

From: Robert A Duff <bobduff@shell01.TheWorld.com>
Newsgroups: comp.compilers
Date: Sun, 23 Nov 2008 17:30:21 -0500
Organization: The World Public Access UNIX, Brookline, MA
References: 08-11-061 08-11-080
Keywords: parse, practice
Posted-Date: 23 Nov 2008 18:41:35 EST

Gene <gene.ressler@gmail.com> writes:


>... The Ada front end of gcc is
> entirely hand-written, recursive descent.


Yes, and the GNAT Ada front end has just about the best syntactic
error recovery and syntax error messages I have ever seen in any
compiler.


>... Perl uses yacc (at least through v5) but with a hand-written
> tokenizer. Python seems to generate its own parser from a grammar
> during startup. Yada yada. At least for production compilers, it's
> more of a mixed bag than you infer.


Yes, it's mixed bag. There are advantages and disadvantages to
either approach.


- Bob



Post a followup to this message

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