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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f384032a8c47ef0d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Newsgroups: comp.lang.ada Subject: Re: about OpenToken From: Georg Bauhaus In-Reply-To: <439e0f5e$0$4338$626a54ce@news.free.fr> References: <439b6ac7$0$20862$636a55ce@news.free.fr> <439c7405$0$28020$626a14ce@news.free.fr> <439e0f5e$0$4338$626a54ce@news.free.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Organization: # Message-ID: <1134442712.20138.8.camel@sonnenregen> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Date: Tue, 13 Dec 2005 03:58:32 +0100 NNTP-Posting-Date: 13 Dec 2005 03:54:30 MET NNTP-Posting-Host: ff2872fb.newsread2.arcor-online.net X-Trace: DXC=j[_060S5` On Tue, 2005-12-13 at 01:01 +0100, Lionel Draghi wrote: > Lionel Draghi a =C3=A9crit : > ... > > For the future, it may be interesting to compare OpenToken with similar= =20 > > library like ANTLR (http://www.antlr.org/). >=20 > Closer to OpenToken than ANTLR is Spirit (http://spirit.sourceforge.net/)= . >=20 > Spirit is addressing moderately complex grammars, inlined in the C++=20 > code, and seems to be easy to use (as far as I can undestand C++ code). >=20 If you consider Spirit, have a look at GNAT.Spitbol.Patterns. Plain Ada (GNAT actually), and easy to use in my view. "The pattern language is modeled on context free grammars, with context sensitive extensions that provide full (type 0) computational capabilities." (g-spipat.ads) That's actually more than Spirit can offer unless things have changed. The notation is fairly concise, permits assignment of matched substrings and subprogram calls while the scanner is moving (back and forth). -- Georg=20