Class: Rubinius::ToolSet.current::TS::Compiler::FileParser
- Defined in:
- lib/rubinius/compiler/stages.rb
Overview
source file -> AST
Instance Attribute Summary
Attributes inherited from Parser
Attributes inherited from Stage
Instance Method Summary collapse
Methods inherited from Parser
#add_magic_comment, #create, #default_transforms, #enable_category, #enable_transform, #initialize, #print, #root, #run
Methods inherited from Stage
#create_next_stage, #initialize, #insert, next_stage, next_stage_class, #processor, #run_next, stage, stage_name
Constructor Details
This class inherits a constructor from Rubinius::ToolSet.current::TS::Compiler::Parser
Instance Method Details
#input(file, line = 1) ⇒ Object
219 220 221 222 |
# File 'lib/rubinius/compiler/stages.rb', line 219 def input(file, line=1) @file = file @line = line end |
#parse ⇒ Object
224 225 226 |
# File 'lib/rubinius/compiler/stages.rb', line 224 def parse create.parse_file end |