It might be convenient sometimes, but I don't think it increases the power
of PEGs.
You can always rewrite an expression like "(E1 break | E2)*" as "(!E1 E2)*
E1?"
I wonder if there are any grammars that can't be expressed without break?

2011/1/1 Ondřej Bílka <[email protected]>

> Hello
> as I started to LR/RR eliminator I noticed that break is handy
>
> It gave idea to introduce break statement to break iteration.
> For example C strings could be parsed as
>  '"' ('"' break | '\"' | . )*
> whad do you think about it
> --
>
> SCSI's too wide.
>
> _______________________________________________
> PEG mailing list
> [email protected]
> https://lists.csail.mit.edu/mailman/listinfo/peg
>
_______________________________________________
PEG mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/peg

Reply via email to