comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Parsing Ada?
Date: Tue, 02 Jun 2015 13:33:07 +0200
Date: 2015-06-02T13:33:07+02:00	[thread overview]
Message-ID: <87pp5es5u4.fsf@adaheads.sparre-andersen.dk> (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."

             reply	other threads:[~2015-06-02 11:33 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 11:33 Jacob Sparre Andersen [this message]
2015-06-02 12:09 ` Parsing Ada? 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
replies disabled

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