Class: Packrat::EOS
- Inherits:
-
GrammarElement
- Object
- GrammarElement
- Packrat::EOS
- Defined in:
- lib/packrat/grammar.rb
Instance Attribute Summary
Attributes inherited from GrammarElement
Instance Method Summary collapse
Methods inherited from GrammarElement
Instance Method Details
#inspect ⇒ Object
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 |