On Jan 17, 2012, at 19:18 , thomas carlier wrote:

> Which one will you recommend for a simple grammar like
>=20
> expressions : expression+
> ;
> expression : [{]content+[}]
> ;
> content : token
>              | TOKEN[|]content
>              |TOKEN[|]expression
> ;
> TOKEN : .*
> ;
>=20
> The grammar is not correct, but you'll understand the main idea
>=20
> Example : some text {text {text|text}} some text {text|text|text}
>=20
> input size [100 - 5000] chars

Write your own by hand. It'll be faster and smaller than anything =
mentioned above.

http://www.ethoberon.ethz.ch/WirthPubl/CBEAll.pdf=