summaryrefslogtreecommitdiff
path: root/tool/lrama/lib/lrama/command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/lrama/lib/lrama/command.rb')
-rw-r--r--tool/lrama/lib/lrama/command.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/tool/lrama/lib/lrama/command.rb b/tool/lrama/lib/lrama/command.rb
index 94e86c6c94..12fc4fc7ec 100644
--- a/tool/lrama/lib/lrama/command.rb
+++ b/tool/lrama/lib/lrama/command.rb
@@ -47,6 +47,11 @@ module Lrama
puts grammar.rules
end
+ if options.trace_opts && options.trace_opts[:actions]
+ puts "Grammar rules with actions:"
+ grammar.rules.each { |rule| puts rule.with_actions }
+ end
+
File.open(options.outfile, "w+") do |f|
Lrama::Output.new(
out: f,