diff options
Diffstat (limited to 'tool/lrama/lib/lrama/options.rb')
-rw-r--r-- | tool/lrama/lib/lrama/options.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tool/lrama/lib/lrama/options.rb b/tool/lrama/lib/lrama/options.rb new file mode 100644 index 0000000000..739ca16f55 --- /dev/null +++ b/tool/lrama/lib/lrama/options.rb @@ -0,0 +1,24 @@ +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 + + def initialize + @skeleton = "bison/yacc.c" + @header = false + @header_file = nil + @report_file = nil + @outfile = "y.tab.c" + @error_recovery = false + @grammar_file = nil + @trace_opts = nil + @report_opts = nil + @y = STDIN + @debug = false + end + end +end |