Class: TDParser::FailParser

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

#==Object



612
613
614
# File 'lib/tdp.rb', line 612

def ==()
  (self.class == r.class)
end

#call(tokens, buff) ⇒ Object



604
605
606
# File 'lib/tdp.rb', line 604

def call(tokens, buff)
  nil
end

#to_sObject



608
609
610
# File 'lib/tdp.rb', line 608

def to_s()
  "<fail>"
end