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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Parsing Ada? Date: Tue, 02 Jun 2015 13:33:07 +0200 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <87pp5es5u4.fsf@adaheads.sparre-andersen.dk> NNTP-Posting-Host: 109.59.100.170.mobile.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: loke.gir.dk 1433245791 12188 109.59.100.170 (2 Jun 2015 11:49:51 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 2 Jun 2015 11:49:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:mU5pqn6vqzUjE9FtLFKr2IytA7g= Xref: news.eternal-september.org comp.lang.ada:26131 Date: 2015-06-02T13:33:07+02:00 List-Id: 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."