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

"Armel" <armelasselin@hotmail.com>
Wed, 19 Nov 2008 10:23:44 +0100

          From comp.compilers

Related articles
[12 earlier articles]
Re: Has anyone hand-written a scanner/parser module? dmaze@mit.edu (David Z Maze) (2008-11-17)
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)
[1 later articles]
| List of all articles for this month |
From: "Armel" <armelasselin@hotmail.com>
Newsgroups: comp.compilers
Date: Wed, 19 Nov 2008 10:23:44 +0100
Organization: les newsgroups par Orange
References: 08-11-061
Keywords: lex, parse, practice
Posted-Date: 19 Nov 2008 19:53:38 EST

<tuxisthebirdforme@gmail.com> a icrit dans le message de news:
>I know most people anymore use lex/yacc or some derivative of these
> tools to create scanner/parser modules for their compiler projects. I
> was wondering if anyone has developed a scanner or parser that they
> personally hand-wrote?


At my previous job, I wrote a javascript interpreter, the lexer is based on
tables (generated by a soft of mine called fdc), and the parser itself is a
state based hand coded LL recursive descent parser. It was pretty easy to
code a correct javascript parser this way and in fact certainely much easier
than with a generator.
as I like that, I rewrote a new javascript interpreter for my new job
(compatible with ECMAScript 1 3rd edition) , with keywords matched against
perfect hasing function rather than binary searches, similar parser.


Armel



Post a followup to this message

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