Method: Lrama::Grammar::Code#translated_code

Defined in:
lib/lrama/grammar/code.rb

#translated_codeObject

$$, $n, @$, @n is translated to C code



11
12
13
14
15
16
17
18
# File 'lib/lrama/grammar/code.rb', line 11

def translated_code
  case type
  when :user_code
    translated_user_code
  when :initial_action
    translated_initial_action_code
  end
end