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
permalink #initialize(build) ⇒ Yacc
Returns a new instance of Yacc.
226 227 228 229 230 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 226 def initialize(build) super @command = 'bison' @compile_options = %q[-o "%{outfile}" "%{infile}"] end |
Instance Attribute Details
Instance Method Details
permalink #run(outfile, infile) ⇒ Object
[View source]
232 233 234 235 236 |
# File 'ext/enterprise_script_service/mruby/lib/mruby/build/command.rb', line 232 def run(outfile, infile) mkdir_p File.dirname(outfile) _pp "YACC", infile.relative_path, outfile.relative_path _run , { :outfile => filename(outfile) , :infile => filename(infile) } end |