Execute rule user code blocks when reducing the rule
This commit is contained in:
1 parent
74beaf7ed8
commit
727c8cd1ea
4 files changed
+90
-13
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user