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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,169cfbee5fb652af X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-14 10:49:09 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: okellogg@freenet.de (Oliver Kellogg) Newsgroups: comp.lang.ada Subject: Re: Free Ada parser Date: 14 Dec 2003 10:49:09 -0800 Organization: http://groups.google.com Message-ID: <6a6390b8.0312141049.1cafb783@posting.google.com> References: <6d4cbc3e.0312091010.7572566b@posting.google.com> <6s1ntv84qt5dims2p3ik1t91aue8kp1hjt@4ax.com> <62gntvktko48ghlpls4ba46d4r0nh455ij@4ax.com> NNTP-Posting-Host: 80.145.168.219 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1071427749 15032 127.0.0.1 (14 Dec 2003 18:49:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 14 Dec 2003 18:49:09 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3460 Date: 2003-12-14T10:49:09-08:00 List-Id: Craig Carey wrote in message news:<62gntvktko48ghlpls4ba46d4r0nh455ij@4ax.com>... > > If YAcc was replaced with the moder advanced ANTLR C++ compiler, a > likely main problem could remain: > > "I developed a "tiny C" grammar for ANTLR annotated to > produce trees to better understand what a real ANTLR > language front end would be like. One of the things that I > learned with this grammar is that debugging ANTLR grammars > is not that much easier than, say, debugging a YACC grammar. > There was a mistake in the production describing the for- > loop. ANTLR gave a non-determinism warning for the unary > minus production. I spent hours pouring over my expression > grammar containing the unary minus, but I could find no > error in it." True, I had to resolve a couple of those ambiguities while developing the ANTLR Ada grammar, but once you really get into the ANTLR way of thinking it's not too bad. Plus, this is a single-shot problem - it only affects the development of the grammar itself but not its users. --Oliver