Class: Rubinius::ToolSet.current::TS::Compiler::Generator
- Defined in:
- lib/rubinius/compiler/stages.rb
Overview
AST -> symbolic bytecode
Instance Attribute Summary collapse
-
#variable_scope ⇒ Object
Returns the value of attribute variable_scope.
Attributes inherited from Stage
Instance Method Summary collapse
-
#initialize(compiler, last) ⇒ Generator
constructor
A new instance of Generator.
- #run ⇒ Object
Methods inherited from Stage
#create_next_stage, #input, #insert, next_stage, next_stage_class, #processor, #run_next, stage, stage_name
Constructor Details
#initialize(compiler, last) ⇒ Generator
Returns a new instance of Generator.
143 144 145 146 147 148 |
# File 'lib/rubinius/compiler/stages.rb', line 143 def initialize(compiler, last) super @variable_scope = nil compiler.generator = self @processor = ToolSet::Generator end |
Instance Attribute Details
#variable_scope ⇒ Object
Returns the value of attribute variable_scope.
141 142 143 |
# File 'lib/rubinius/compiler/stages.rb', line 141 def variable_scope @variable_scope end |
Instance Method Details
#run ⇒ Object
150 151 152 153 154 155 156 |
# File 'lib/rubinius/compiler/stages.rb', line 150 def run @output = @processor.new @input.variable_scope = @variable_scope @input.bytecode @output @output.close run_next end |