Re: Q: LL(1) grammar for C++ ?

parrt@lonewolf.parr-research.com (Terence John Parr)
Mon, 11 Sep 1995 20:52:06 GMT

          From comp.compilers

Related articles
Q: LL(1) grammar for C++ ? czeslaw@diku.dk (1995-09-05)
Re: Q: LL(1) grammar for C++ ? parrt@lonewolf.parr-research.com (1995-09-11)
| List of all articles for this month |
Newsgroups: comp.compilers
From: parrt@lonewolf.parr-research.com (Terence John Parr)
Keywords: parse, LL(1), PCCTS
Organization: zNET
References: 95-09-063
Date: Mon, 11 Sep 1995 20:52:06 GMT

Czeslaw Kazimierczak wrote:
> I wonder if there is any LL(1) grammer for C++ available ?
> Is such a grammar possible at all ?


LL(1)? No. pred-LL(2)? Yes. A pretty decent C++ parser
is available with PCCTS at ftp.parr-research.com in
pub/pccts/contrib. The language tools etc... are all
in pub/pccts/*.


As usual, "your mileage may vary."


Terence
PS For a description of the pred-LL(k) parser generator
ANTLR (part of PCCTS) check out
ftp://ftp.parr-research.com/pub/pccts/papers/antlr.ps
(SP&E July issue).


--


Post a followup to this message

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