Re: Recursive Descent Parsers and YACC

Bruce.Hoult@actrix.co.nz (Bruce Hoult)
Sun, 18 Nov 90 05:11:29 GMT

          From comp.compilers

Related articles
Recursive Descent Parsers and YACC melling@psuvax1.cs.psu.edu (1990-11-15)
Re: Recursive Descent Parsers and YACC pardo@cs.washington.edu (1990-11-16)
Re: Recursive Descent Parsers and YACC grimlok@hubcap.clemson.edu (1990-11-16)
Re: Recursive Descent Parsers and YACC Bruce.Hoult@actrix.co.nz (1990-11-18)
Re: Recursive Descent Parsers and YACC dave@labtam.labtam.oz.au (1990-11-20)
Re: Recursive Descent Parsers and YACC hankd@ecn.purdue.edu (1990-11-17)
Re: Recursive Descent Parsers and YACC henry@zoo.toronto.edu (1990-11-17)
Re: Recursive Descent Parsers and YACC mailrus!sharkey!hela!iti.org!dhw@uunet.UU.NETid AA (1990-11-20)
Recursive Descent Parsers and YACC grosch@gmdka.uucp (Josef Grosch) (1990-11-22)
Re: Recursive Descent Parsers and YACC grimlok@hubcap.clemson.edu (1990-11-23)
[4 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: Bruce.Hoult@actrix.co.nz (Bruce Hoult)
Keywords: parse, yacc, design, question
Comment-To: melling@psuvax1.cs.psu.edu
Organization: Actrix Information Exchange, Wellington, New Zealand
References: <F7p?bk63@cs.psu.edu>
Date: Sun, 18 Nov 90 05:11:29 GMT

In article <F7p?bk63@cs.psu.edu> melling@psuvax1.cs.psu.edu (Michael D Mellinger) writes:
> Can someone give me an estimate on how much faster parsing can be made by
> writing a recursive-descent parser instead of using Yacc and Lex? Is there
> enough of a difference to consider using a RDP in a commercial C compiler?


Bjarne Stroustrup is on record as saying that he regrets having used yacc to
generate the parser in CFront (AT&T's C++ compiler), not because of any
difference in parsing speed, but because of the extreme difficulty of
providing meaningful syntax errors with yacc, compared to using RD.


Walter Bright used RD in Zortech C++, and it's no slouch in compile speed.


-- Bruce Hoult
      Bruce.Hoult@actrix.gen.nz
--


Post a followup to this message

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