class Rsec::LookAhead

look ahead

Public Instance Methods

_parse(ctx) click to toggle source
# File lib/rsec/parsers/misc.rb, line 53
def _parse ctx
  res = left()._parse ctx
  pos = ctx.pos
  return INVALID if INVALID[right()._parse ctx]
  ctx.pos = pos
  res
end