Class: TDParser::ReferenceParser
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Parser
#%, #*, #+, #-, #/, #==, #>, #>>, #call, #do, #optimize, #parse, #peek, #to_proc, #to_s, #|, #~@
Methods included from TDParser
#any_rule, #backref, #chainl, #chainr, #condition_rule, define, #empty_rule, #fail_rule, #leftrec, #none_rule, #rightrec, #rule, #stackref, #state, #token
Methods included from BufferUtils
Instance Method Details
#__backref__(xs, eqsym) ⇒ Object
670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/tdp.rb', line 670 def __backref__(xs, eqsym) x = xs.shift() xs.inject(token(x, eqsym)){|acc,x| case x when Sequence acc - __backref__(x, eqsym) else acc - token(x, eqsym) end } end |
#same?(r) ⇒ Boolean
682 683 684 |
# File 'lib/tdp.rb', line 682 def same?(r) false end |