From: Craig Carey <research@ijs.co.nz>
Subject: Re: Free Ada parser
Date: Sun, 14 Dec 2003 14:50:22 +1300
Date: 2003-12-14T14:50:22+13:00 [thread overview]
Message-ID: <62gntvktko48ghlpls4ba46d4r0nh455ij@4ax.com> (raw)
In-Reply-To: 6s1ntv84qt5dims2p3ik1t91aue8kp1hjt@4ax.com
On Sun, 14 Dec 2003 11:57:51 +1300, Craig Carey wrote:
>I uploaded a package that has merged Ada [A]Yacc parser lines.
I.e. SCATC and NewP2Ada got merged. If there is a version with fixess not
in those 2 then I would like to know of that.
>... has a demo program that makes [*use*] of the Adagoop program.
> http://www.ijs.co.nz/code/ada95_adagoop_parser.zip
I get some of these wording errors out
>Two other document[*ed*] uses are [...]
I use Adagoopp and people at the USAFA use it.
-------------
On 13 Dec 2003 17:46:17 +0100, Pascal Obry wrote:
...
>And if this version does not work you I have ported a version of aflex/ayacc
>(long time ago). You can download this from my homepage.
...
http://perso.wanadoo.fr/pascal.obry/archive/flexyacc.tar.gz
"aflex/ayacc (9/3/1997)"
I guess that fixes in that gzip file are in NewP2Ada and my code.
Also it puts Ada code in case statement alternatives.
* With case statement alternatives, the case alternative that sets a
mode for a subexpression may be different from the case alternative
that resets the mode.
I don't know if changing the grammar can always provide a solution.
* when Adagoop is used, probably recursion is used. So every mode that
is set can be reset or unset.
E.g. the quote in "x or '(0<a)" prevents the replacing of 'a' with
its value.
Ada might have to be avoided if Yacc is not good enough, and debugging
Yacc is an area that could lead to a rejection of the Ada Yacc parser.
If YAcc was replaced with the moder advanced ANTLR C++ compiler, a
likely main problem could remain:
http://www.bearcave.com/software/antlr/antlr_examples.html
"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."
Craig Carey
next prev parent reply other threads:[~2003-12-14 1:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-09 18:10 Free Ada parser J Quirce
2003-12-09 19:27 ` David C. Hoos
2003-12-10 13:10 ` Oliver Kellogg
2003-12-10 8:11 ` Ole-Hjalmar Kristensen
2003-12-13 22:57 ` Craig Carey
2003-12-14 1:50 ` Craig Carey [this message]
2003-12-14 18:49 ` Oliver Kellogg
2003-12-15 17:45 ` Robert I. Eachus
-- strict thread matches above, loose matches on Subject: below --
2003-12-11 14:50 ada_wizard
2003-12-12 21:05 ` Colin Paul Gloster
2003-12-13 3:02 ` Steve
2003-12-13 16:46 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox