lib/lrama/options.rb in lrama-0.6.9 vs lib/lrama/options.rb in lrama-0.6.10
- old
+ new
@@ -1,13 +1,15 @@
+# frozen_string_literal: true
+
module Lrama
# Command line options.
class Options
attr_accessor :skeleton, :header, :header_file,
:report_file, :outfile,
:error_recovery, :grammar_file,
- :trace_opts, :report_opts, :y,
- :debug
+ :trace_opts, :report_opts,
+ :diagnostic, :y, :debug
def initialize
@skeleton = "bison/yacc.c"
@header = false
@header_file = nil
@@ -15,9 +17,10 @@
@outfile = "y.tab.c"
@error_recovery = false
@grammar_file = nil
@trace_opts = nil
@report_opts = nil
+ @diagnostic = false
@y = STDIN
@debug = false
end
end
end