Class: Rattler::Runtime::ExtendedPackratParser::LR
- Inherits:
-
Object
- Object
- Rattler::Runtime::ExtendedPackratParser::LR
- Defined in:
- lib/rattler/runtime/extended_packrat_parser.rb
Instance Attribute Summary collapse
-
#head ⇒ Object
Returns the value of attribute head.
-
#rule_name ⇒ Object
Returns the value of attribute rule_name.
-
#seed ⇒ Object
Returns the value of attribute seed.
Instance Method Summary collapse
-
#initialize(seed, rule_name, head) ⇒ LR
constructor
:nodoc:.
Constructor Details
#initialize(seed, rule_name, head) ⇒ LR
:nodoc:
114 115 116 117 118 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 114 def initialize(seed, rule_name, head) @seed = seed @rule_name = rule_name @head = head end |
Instance Attribute Details
#head ⇒ Object
Returns the value of attribute head.
119 120 121 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 119 def head @head end |
#rule_name ⇒ Object
Returns the value of attribute rule_name.
119 120 121 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 119 def rule_name @rule_name end |
#seed ⇒ Object
Returns the value of attribute seed.
119 120 121 |
# File 'lib/rattler/runtime/extended_packrat_parser.rb', line 119 def seed @seed end |