Class: Rsec::NegativeLookAhead
- Defined in:
- lib/rsec/parsers/misc.rb
Overview
negative look ahead
Instance Attribute Summary
Attributes inherited from Binary
Attributes included from Parser
Instance Method Summary collapse
Methods included from Parser
#&, #*, #<<, #>>, #^, #cached, #eof, #fail, #inspect, #join, #map, #maybe, #parse, #parse!, #star, #|
Instance Method Details
#_parse(ctx) ⇒ Object
64 65 66 67 68 69 70 |
# File 'lib/rsec/parsers/misc.rb', line 64 def _parse ctx res = left()._parse ctx pos = ctx.pos return INVALID unless INVALID[right()._parse ctx] ctx.pos = pos res end |