class Rsec::SeqOne
sequence combinator<br/> the result is the result of the parser at idx
Public Instance Methods
_parse(ctx)
click to toggle source
# File lib/rsec/parsers/seq.rb, line 20 def _parse ctx ret = INVALID parsers.each_with_index do |p, i| res = p._parse ctx return INVALID if INVALID[res] ret = res if i == idx end ret end