Class: Lrama::Command
- Inherits:
-
Object
- Object
- Lrama::Command
- Defined in:
- lib/lrama/command.rb
Constant Summary collapse
- LRAMA_LIB =
File.realpath(File.join(File.dirname(__FILE__)))
- STDLIB_FILE_PATH =
File.join(LRAMA_LIB, 'grammar', 'stdlib.y')
Instance Method Summary collapse
-
#initialize(argv) ⇒ Command
constructor
A new instance of Command.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ Command
Returns a new instance of Command.
8 9 10 11 12 13 14 15 16 |
# File 'lib/lrama/command.rb', line 8 def initialize(argv) @logger = Lrama::Logger.new @options = OptionParser.parse(argv) @tracer = Tracer.new(STDERR, **@options.trace_opts) @reporter = Reporter.new(**@options.report_opts) @warnings = Warnings.new(@logger, @options.warnings) rescue => e abort (e.) end |