Class: MRuby::Command::Yacc
- Inherits:
-
MRuby::Command
- Object
- MRuby::Command
- MRuby::Command::Yacc
- Defined in:
- ext/enterprise_script_service/mruby/lib/mruby/build/command.rb
Constant Summary
Constants inherited from MRuby::Command
Instance Attribute Summary collapse
-
#compile_options ⇒ Object
Returns the value of attribute compile_options.
Attributes inherited from MRuby::Command
Instance Method Summary collapse
-
#initialize(build) ⇒ Yacc
constructor
A new instance of Yacc.
- #run(outfile, infile) ⇒ Object
Methods inherited from MRuby::Command
Constructor Details
#initialize(build) ⇒ Yacc
Returns a new instance of Yacc.
215 216 217 218 219 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 215 def initialize(build) super @command = 'bison' = '-o %{outfile} %{infile}' end |
Instance Attribute Details
#compile_options ⇒ Object
Returns the value of attribute compile_options.
213 214 215 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 213 def end |
Instance Method Details
#run(outfile, infile) ⇒ Object
221 222 223 224 225 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 221 def run(outfile, infile) FileUtils.mkdir_p File.dirname(outfile) _pp "YACC", infile.relative_path, outfile.relative_path _run , { :outfile => filename(outfile) , :infile => filename(infile) } end |