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=0.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6784fd29e43ab726 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-18 07:50:28 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: Ada 95 grammar for aflex? Date: Thu, 18 Jan 2001 15:37:13 GMT Organization: Deja.com Message-ID: <9472j8$93r$1@nnrp1.deja.com> References: <3A6703BD.5D78D62@informatik.uni-stuttgart.de> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Thu Jan 18 15:37:13 2001 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109 X-Http-Proxy: 1.0 x62.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:4171 Date: 2001-01-18T15:37:13+00:00 List-Id: In article <3A6703BD.5D78D62@informatik.uni-stuttgart.de>, Ralf =?iso-8859-1?Q?Rei=DFing?= wrote: > I'd like to make lexical analysis of Ada 95 code, > so I am looking for an Ada 95 grammar for aflex. Go to http://www.adaic.org/standards/ada95.html and follow the appropriate links. > Alternatively I'd be interested in an Ada package that does the > job of a lexical analyser which splits an Ada file into a token > stream. I've taken a look at the lexical analyser of gnat, but it > seems to be quite complex and heavily coupled to other gnat > packages. Take a look at OpenToken at http://www.telepath.com/dennison/Ted/OpenToken/OpenToken.html It comes with an Ada lexical analyzer (along with lots of examples). There's a good chance it will do exactly what you want. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/