From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,67a7d3e45c7bb21e X-Google-Attributes: gid103376,public From: Brian Rogoff Subject: Re: Parser generator tools (Was Re: aflexx/ayacc) Date: 1999/03/15 Message-ID: #1/1 X-Deja-AN: 455462540 References: <01be693b$a87772e0$314d3a8b@nt-dawe> <7c02hs$ihh$1@cf01.edf.fr> <7cjajp$ni91@ftp.kvaerner.com> <921542580.876582@miso.it.uq.edu.au> Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp1.ba.best.com 921549936 226 bpr@206.184.139.136 MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-15T00:00:00+00:00 List-Id: On 16 Mar 1999, Dan Johnston D.B. wrote: > In <7cjajp$ni91@ftp.kvaerner.com> "Tarjei Tjstheim Jensen" writes: > >Brian Rogoff wrote in message ... > >>Hi, > >> Has anyone created any parser generator tools for Ada (95) besides > >>aflex/ayacc which they'd be willing to release under some sort of > >>"open source" license? In particular, I'd be interested in an LLi(k) style > >>parsergen like ANTLR or PRECC or even RDP for Ada-95, since I'm basically > >>a recursively decent fellow. I'm willing to help debug code if necessary. > > >There is something called Cocktail that was released a few years ago that may > >interest you. The commercial version may still be available (at that time it > >generated modula-2). If you need something to do you could port cocktail to > >Ada. > > I have converted several of the "Cocktail" tools, from the last release of > Cocktail prior to its commercialisation, to generate Ada-95 as well as the > Modula-2 and C, which it generated as originally distributed. > > The following tools have been converted to generate Ada (95): > rex - lexical generator > lalr - parser generator > cg - attribute grammar system (comprising > ast - abstract syntax tree system > ag - attribute evaluator.) > puma - a pattern matching system for manipulating attributed trees. > > Unfortunately, I have not converted "ell" the recursive descent parser > generator, which would be the tool of interest to the initiator of this > thread. Thanks for catching on! If I were interested in yet another LR parser gen I'd stick with ayacc. I'd really like something like PRECC or ANTLR for Ada. I'd also like the tool to be written in Ada so that I could recompile as necessary. I don't have access to an M2 compiler. I can of course write all of my code in C, using C tools, but I'd like to introduce Ada into my tool chain. Of course, I can hand code parsers too, or write the LL(k) gen myself, but that seems like a waste of time. -- Brian