lib/lrama/command.rb in lrama-0.5.7 vs lib/lrama/command.rb in lrama-0.5.8

- old
+ new

@@ -6,10 +6,10 @@ Report::Duration.enable if options.trace_opts[:time] 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) if options.report_file