Class: Packrat::GrammarElement

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

Direct Known Subclasses

EOS, ErrorReporter, Maybe, RegexpLiteral, Repeat, RuleRef

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hiddenObject

A GrammarElement is hidden if it does not produce a result that should be used in any way. This is mostly used for whitespace.



46
47
48
# File 'lib/packrat/grammar.rb', line 46

def hidden
  @hidden
end

Instance Method Details

#to_packrat_grammar_elementObject



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

def to_packrat_grammar_element; self; end