kschiess / parslet

A small PEG based parser library. See the Hacking page in the Wiki as well.
kschiess.github.com/parslet
MIT License
805 stars 95 forks source link

Accelerators don't match across rule barriers #102

Closed kernow closed 7 years ago

kernow commented 10 years ago

As per discussion on irc

These parser rules

rule(:quotes) { str('"') }
rule(:value)  { quotes >> (quotes.absent? >> any).repeat.as(:value) >> quotes }

Should be matched by

A = Parslet::Accelerator
A.rule((A.str(:x).absent? >> A.any).repeat) { GobbleUp.new(x) }

But currently is not.

kschiess commented 10 years ago

lib/parslet/accelerator/engine.rb:12-17 must be filled in ;) Scheduled for 1.7 release.

kschiess commented 9 years ago

Just writing to let you know of my progress here:

not trivial ;)

kschiess commented 7 years ago

I've got no solution to this. I'll close this ticket for now.