Class: Lrama::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/lrama/options.rb

Overview

Command line options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/lrama/options.rb', line 9

def initialize
  @skeleton = "bison/yacc.c"
  @header = false
  @header_file = nil
  @report_file = nil
  @outfile = "y.tab.c"
  @error_recovery = false
  @grammar_file = nil
  @report_file = nil
  @trace_opts = nil
  @report_opts = nil
  @y = STDIN
end

Instance Attribute Details

#error_recoveryObject

Returns the value of attribute error_recovery.



4
5
6
# File 'lib/lrama/options.rb', line 4

def error_recovery
  @error_recovery
end

#grammar_fileObject

Returns the value of attribute grammar_file.



4
5
6
# File 'lib/lrama/options.rb', line 4

def grammar_file
  @grammar_file
end

#headerObject

Returns the value of attribute header.



4
5
6
# File 'lib/lrama/options.rb', line 4

def header
  @header
end

#header_fileObject

Returns the value of attribute header_file.



4
5
6
# File 'lib/lrama/options.rb', line 4

def header_file
  @header_file
end

#outfileObject

Returns the value of attribute outfile.



4
5
6
# File 'lib/lrama/options.rb', line 4

def outfile
  @outfile
end

#report_fileObject

Returns the value of attribute report_file.



4
5
6
# File 'lib/lrama/options.rb', line 4

def report_file
  @report_file
end

#report_optsObject

Returns the value of attribute report_opts.



4
5
6
# File 'lib/lrama/options.rb', line 4

def report_opts
  @report_opts
end

#skeletonObject

Returns the value of attribute skeleton.



4
5
6
# File 'lib/lrama/options.rb', line 4

def skeleton
  @skeleton
end

#trace_optsObject

Returns the value of attribute trace_opts.



4
5
6
# File 'lib/lrama/options.rb', line 4

def trace_opts
  @trace_opts
end

#yObject

Returns the value of attribute y.



4
5
6
# File 'lib/lrama/options.rb', line 4

def y
  @y
end