diff options
Diffstat (limited to 'tool/lrama/lib/lrama/command.rb')
-rw-r--r-- | tool/lrama/lib/lrama/command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lrama/lib/lrama/command.rb b/tool/lrama/lib/lrama/command.rb index 5d8957da8f..afaecda506 100644 --- a/tool/lrama/lib/lrama/command.rb +++ b/tool/lrama/lib/lrama/command.rb @@ -8,7 +8,7 @@ module Lrama warning = Lrama::Warning.new text = options.y.read options.y.close if options.y != STDIN - grammar = Lrama::Parser.new(text).parse + grammar = Lrama::Parser.new(text, options.grammar_file).parse states = Lrama::States.new(grammar, warning, trace_state: (options.trace_opts[:automaton] || options.trace_opts[:closure])) states.compute context = Lrama::Context.new(states) |