Class: Aurum::ParsingTable::Action
- Inherits:
-
Struct
- Object
- Struct
- Aurum::ParsingTable::Action
- Defined in:
- lib/aurum/grammar/compiled_tables.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/aurum/grammar/compiled_tables.rb', line 3 def type @type end |
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/aurum/grammar/compiled_tables.rb', line 3 def value @value end |
Instance Method Details
#reduce_action? ⇒ Boolean
11 12 13 |
# File 'lib/aurum/grammar/compiled_tables.rb', line 11 def reduce_action? type == :reduce || type == :read_reduce end |
#shift_action? ⇒ Boolean
7 8 9 |
# File 'lib/aurum/grammar/compiled_tables.rb', line 7 def shift_action? type == :shift || type == :lookahead_shift end |