Re: about OpenToken
- From: Georg Bauhaus <bauhaus@xxxxxxxxxxxxx>
- Date: Tue, 13 Dec 2005 03:58:32 +0100
On Tue, 2005-12-13 at 01:01 +0100, Lionel Draghi wrote:
> Lionel Draghi a écrit :
> ...
> > For the future, it may be interesting to compare OpenToken with similar
> > library like ANTLR (http://www.antlr.org/).
>
> Closer to OpenToken than ANTLR is Spirit (http://spirit.sourceforge.net/)..
>
> Spirit is addressing moderately complex grammars, inlined in the C++
> code, and seems to be easy to use (as far as I can undestand C++ code).
>
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
.
- References:
- about OpenToken
- From: Lionel Draghi
- Re: about OpenToken
- From: Stephen Leake
- Re: about OpenToken
- From: Lionel Draghi
- Re: about OpenToken
- From: Lionel Draghi
- about OpenToken
- Prev by Date: Re: about OpenToken
- Next by Date: Re: about OpenToken
- Previous by thread: Re: about OpenToken
- Next by thread: call dnb
- Index(es):
Relevant Pages
|