Class: Lrama::Grammar::Code::RuleAction
- Inherits:
-
Lrama::Grammar::Code
- Object
- Lrama::Grammar::Code
- Lrama::Grammar::Code::RuleAction
- Defined in:
- lib/lrama/grammar/code/rule_action.rb
Instance Attribute Summary
Attributes inherited from Lrama::Grammar::Code
Instance Method Summary collapse
-
#initialize(type:, token_code:, rule:, grammar:) ⇒ RuleAction
constructor
A new instance of RuleAction.
Methods inherited from Lrama::Grammar::Code
Constructor Details
#initialize(type:, token_code:, rule:, grammar:) ⇒ RuleAction
17 18 19 20 21 |
# File 'lib/lrama/grammar/code/rule_action.rb', line 17 def initialize(type:, token_code:, rule:, grammar:) super(type: type, token_code: token_code) @rule = rule @grammar = grammar end |