Class: TDParser::EmptyParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/tdp.rb

Instance Method Summary collapse

Methods inherited from Parser

#%, #*, #+, #-, #/, #>, #>>, #do, #optimize, #parse, #peek, #same?, #to_proc, #|, #~@

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

#prepare, #recover

Instance Method Details

#==(r) ⇒ Object



626
627
628
# File 'lib/tdp.rb', line 626

def ==(r)
  true
end

#call(tokens, buff) ⇒ Object



618
619
620
# File 'lib/tdp.rb', line 618

def call(tokens, buff)
  Sequence[nil]
end

#to_sObject



622
623
624
# File 'lib/tdp.rb', line 622

def to_s()
  "<empty>"
end