> Today, I tried firing up parslet on a different machine, and am getting
> errors trying to use it. When calling #parse a class that subclasses
> Parslet::Parser, I get:
>
> /usr/lib64/ruby/gems/1.8/gems/parslet-1.2.0/lib/parslet/atoms/re.rb:16:
> warning: regexp has invalid interval
> /usr/lib64/ruby/gems/1.8/gems/parslet-1.2.0/lib/parslet/atoms/re.rb:16:
> warning: regexp has `}' without escape
> NoMethodError: undefined method `tap' for \\\" (SPACING? TOKEN
> SPACING?){1, } \\\":Parslet::Atoms::Re
> from
> /usr/lib64/ruby/gems/1.8/gems/parslet-1.2.0/lib/parslet/atoms/entity.rb:25:in
> `parslet'
>
>
> That last being a fatal error.
>
> Any ideas? I have noticed that this machine has ruby 1.8.6 installed, is
> that the problem, do I need 1.8.7?
It may very well be that 1.8.6 wont work. But judging from your stack
trace, this might be related to input you're giving as well;
Parslet::Atoms::Re constructs a regular expression from the range you're
feeding it (match('...')) - and that seems to fail. Maybe if you give us
something to work with (a piece of your grammar that reproduces the
error), somebody here will be able to reproduce this and narrow it down?
kaspar