Class: Oryx::Runner
- Inherits:
-
Object
- Object
- Oryx::Runner
- Defined in:
- lib/oryx/runner.rb
Instance Attribute Summary collapse
-
#input_filename ⇒ Object
readonly
Returns the value of attribute input_filename.
-
#output_filename ⇒ Object
readonly
Returns the value of attribute output_filename.
Instance Method Summary collapse
-
#initialize(argv) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#input_filename ⇒ Object (readonly)
Returns the value of attribute input_filename.
6 7 8 |
# File 'lib/oryx/runner.rb', line 6 def input_filename @input_filename end |
#output_filename ⇒ Object (readonly)
Returns the value of attribute output_filename.
6 7 8 |
# File 'lib/oryx/runner.rb', line 6 def output_filename @output_filename end |
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/oryx/runner.rb', line 15 def run puts "input: #{input_filename}" puts "output: #{output_filename}" tokens = lex input_filename ast = parse tokens generate ast end |