Class: Packrat::EOS

Inherits:
GrammarElement show all
Defined in:
lib/packrat/grammar.rb

Instance Attribute Summary

Attributes inherited from GrammarElement

#hidden

Instance Method Summary collapse

Methods inherited from GrammarElement

#to_packrat_grammar_element

Instance Method Details

#inspectObject



314
# File 'lib/packrat/grammar.rb', line 314

def inspect; "EOS"; end

#parse(parser) ⇒ Object



311
312
313
# File 'lib/packrat/grammar.rb', line 311

def parse(parser)
  parser.eos? ? 0 : false
end