lib/lrama/output.rb in lrama-0.5.9 vs lib/lrama/output.rb in lrama-0.5.10
- old
+ new
@@ -184,12 +184,12 @@
# b4_user_actions
def user_actions
str = ""
@context.states.rules.each do |rule|
- next unless rule.code
+ next unless rule.token_code
- code = rule.code
+ code = rule.token_code
spaces = " " * (code.column - 1)
str << <<-STR
case #{rule.id + 1}: /* #{rule.as_comment} */
#line #{code.line} "#{@grammar_file_path}"