On Mon, May 29, 2017 at 7:31 PM, Juancarlo Añez <apal...@gmail.com> wrote:

I haven't published the TatSu version with the "_skip to_" expression, so I
> can still tweak the meaning. I have to think more about your approach,
> which makes a lot of sense!
>
I did change the meaning of “skip to” to be (!e ANY ) e (the negative
lookahead before the skip), but I did not provide any other options,
because the main purpose of the new syntax, since it is equivalent to other
expressions, was to provide an efficient way of skipping by bypassing all
the parsing logic during the skip.

I did add /./ (the regex for .) as a special case of regular expressions,
so it is implemented by advancing the input positions without involving the
regex machinery.

For all other variations of skipping different from (!e ANY ) e, the
designer can use their equivalent ((!e /./) ->e would equivalent to ANY++e
in Mouse, and a++b would be {!b a}+ b in TatSu).

Cheers!
​
-- 
Juancarlo *Añez*
_______________________________________________
PEG mailing list
PEG@lists.csail.mit.edu
https://lists.csail.mit.edu/mailman/listinfo/peg

Reply via email to