Execute rule user code blocks when reducing the rule

This commit is contained in:
josh committed 2022-10-13 04:56:50 -04:00
1 parent 74beaf7ed8
commit 727c8cd1ea
4 files changed
+90 -13

No files matched your search

+5
View File
@@ -170,6 +170,11 @@ class Propane
raise Error.new("Lexer mode '#{mode_name}' not found")
end
"m_mode = #{mode_id}u"
end.gsub(/\$\$/) do |match|
"_result"
end.gsub(/\$(\d+)/) do |match|
index = $1.to_i
"stateresults[$-1-n_states+#{index}].result"
end
end