Class: Lrama::Grammar::Code::RuleAction

Inherits:
Lrama::Grammar::Code show all
Defined in:
lib/lrama/grammar/code/rule_action.rb

Instance Attribute Summary

Attributes inherited from Lrama::Grammar::Code

#token_code, #type

Instance Method Summary collapse

Methods inherited from Lrama::Grammar::Code

#==, #translated_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