Tim Goodwin schrieb:
> But I don't think the language x ^ n is expressible in a
> PEG.

Of course it is. It's l <- x+

PEGs are very similar to RegEx, they even contain RegEx.

As a thumbnail:

Write more like RegEx, and use the other possibilities for the parts
only, where the part of the language is not regular:

b <- '(' a ')' // ;-)

Yours,
VB.
-- 
X-Pie Software GmbH
Nobelstrasse 32, 88131 Lindau (Bodensee)
mailto:v...@x-pie.de  http://www.x-pie.de

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
PEG mailing list
PEG@lists.csail.mit.edu
https://lists.csail.mit.edu/mailman/listinfo/peg

Reply via email to