comp.lang.ada
 help / color / mirror / Atom feed
* Parsing Ada?
@ 2015-06-02 11:33 Jacob Sparre Andersen
  2015-06-02 12:09 ` G.B.
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Jacob Sparre Andersen @ 2015-06-02 11:33 UTC (permalink / raw)


I have a project, which requires that I write/generate a parser for an
Ada subset:

+ Only package specifications.
+ No use clauses.
+ No type, object or function declarations (only procedures).
+ Procedures can only have "in" parameters.

I have attempted to use OpenToken to do the parsing, and although it
seems to work fine as a parser, the options for extracting information
from the parse tree are too limited (or maybe I just can't understand
the documentation).

I'm not that fond of generating the parser on-the-fly every time I run
my program.  I would prefer to compile the grammar to Ada source text,
which I then could compile into the program.

What open source parsers/parser generators are there for use in Ada
programs?  And what are your experiences with them?

So far I've found:

+ OpenToken
+ AdaGOOP
+ ayacc

Greetings,

Jacob
-- 
"It is very easy to get ridiculously confused about the
 tenses of time travel, but most things can be resolved
 by a sufficiently large ego."

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-06-08 22:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-02 11:33 Parsing Ada? Jacob Sparre Andersen
2015-06-02 12:09 ` G.B.
2015-06-02 12:36   ` Jacob Sparre Andersen
2015-06-02 14:47   ` Luke A. Guest
2015-06-02 16:36 ` Dmitry A. Kazakov
2015-06-03 22:39   ` Randy Brukardt
2015-06-04  7:45     ` Dmitry A. Kazakov
2015-06-03  7:58 ` Stephen Leake
2015-06-03  8:36   ` J-P. Rosen
2015-06-03 11:04   ` Simon Wright
2015-06-04  6:59   ` Jacob Sparre Andersen
2015-06-04 10:24     ` J-P. Rosen
2015-06-04 12:15     ` jan.de.kruyf
2015-06-04 12:30       ` jan.de.kruyf
2015-06-05  8:02     ` Simon Wright
2015-06-08  7:53       ` Jacob Sparre Andersen
2015-06-05  9:34     ` Stephen Leake
2015-06-08  8:34       ` Jacob Sparre Andersen
2015-06-08 22:45 ` wowwomenonwheels205

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox