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

Jeremy Bennett <jeremy.bennett@embecosm.com>
Sun, 16 Nov 2008 04:06:33 -0600

          From comp.compilers

Related articles
Has anyone hand-written a scanner/parser module? tuxisthebirdforme@gmail.com (tuxisthebirdforme@gmail.com) (2008-11-15)
Re: Has anyone hand-written a scanner/parser module? echristo@gmail.com (Eric Christopher) (2008-11-15)
Re: Has anyone hand-written a scanner/parser module? felipeangriman@gmail.com (Felipe Angriman) (2008-11-15)
Re: Has anyone hand-written a scanner/parser module? mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2008-11-16)
Re: Has anyone hand-written a scanner/parser module? jeremy.bennett@embecosm.com (Jeremy Bennett) (2008-11-16)
Re: Has anyone hand-written a scanner/parser module? barry.j.kelly@gmail.com (Barry Kelly) (2008-11-16)
Re: Has anyone hand-written a scanner/parser module? efutch@gmail.com (Egdares Futch) (2008-11-16)
Re: Has anyone hand-written a scanner/parser module? jgd@cix.compulink.co.uk (2008-11-16)
Re: Has anyone hand-written a scanner/parser module? idbaxter@semdesigns.com (Ira Baxter) (2008-11-16)
Re: Has anyone hand-written a scanner/parser module? rajamukherji@gmail.com (Raja Mukherji) (2008-11-16)
Re: Has anyone hand-written a scanner/parser module? bill@qswtools.com (Bill Cox) (2008-11-16)
[15 later articles]
| List of all articles for this month |

From: Jeremy Bennett <jeremy.bennett@embecosm.com>
Newsgroups: comp.compilers
Date: Sun, 16 Nov 2008 04:06:33 -0600
Organization: Compilers Central
References: 08-11-061
Keywords: lex, parse, practice
Posted-Date: 16 Nov 2008 17:52:40 EST

On Sat, 15 Nov 2008 09:49:38 -0800, tuxisthebirdforme@gmail.com wrote:


> 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? ...


It's old, but take a look at "BCPL: The Language and its Compiler" by
Martin Richards and Colin Whitby-Strevens. It includes the listing and
description for the BCPL compiler front end (in BCPL of course). It's an
example of a hand-written recursive descent compiler with precedence
parsing for expressions.


I believe that makes it a parser for LL(1) language with LR(1)
expressions.


HTH,




Jeremy



Post a followup to this message

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