Пример #1
0
 public SymbolTable Analyse(AstRoot ast)
 {
     SymbolTable retTable = new SymbolTable ();
     RootAnalyser visitor = new RootAnalyser (errorLog, retTable);
     ast.Visit (visitor);
     return retTable;
 }
Пример #2
0
 public ModuleCompiler(ErrorLog errorLog, SymbolTable symbolTable, IodineModule module)
 {
     this.errorLog = errorLog;
     this.symbolTable = symbolTable;
     this.module = module;
     functionCompiler = new FunctionCompiler (errorLog, symbolTable, module.Initializer);
 }
Пример #3
0
		public FunctionCompiler (SymbolTable symbolTable, IodineMethod methodBuilder,
		                         Stack<IodineLabel> breakLabels, Stack<IodineLabel> continueLabels)
		{
			this.symbolTable = symbolTable;
			this.methodBuilder = methodBuilder;
			this.breakLabels = breakLabels;
			this.continueLabels = continueLabels;
		}
Пример #4
0
		public PatternCompiler (SymbolTable symbolTable,
			IodineMethod methodBuilder,
			int temporary,
			IodineAstVisitor parent)
		{
			parentVisitor = parent;
			this.methodBuilder = methodBuilder;
			this.symbolTable = symbolTable;
			this.temporary = temporary;
		}
Пример #5
0
		public FunctionCompiler (SymbolTable symbolTable, IodineMethod methodBuilder)
		{
			this.symbolTable = symbolTable;
			this.methodBuilder = methodBuilder;
		}
Пример #6
0
 public FunctionCompiler(ErrorLog errorLog, SymbolTable symbolTable, IodineMethod methodBuilder)
 {
     this.errorLog = errorLog;
     this.symbolTable = symbolTable;
     this.methodBuilder = methodBuilder;
 }
Пример #7
0
		public PatternAnalyzer (ErrorLog errorLog, SymbolTable symbolTable, IodineAstVisitor parent)
		{
			parentVisitor = parent;
			this.symbolTable = symbolTable;
			this.errorLog = errorLog;
		}
Пример #8
0
		private IodineCompiler (IodineContext context, SymbolTable symbolTable, AstRoot root)
		{
			this.context = context;
			this.symbolTable = symbolTable;
			this.root = root;
		}
Пример #9
0
 public IodineCompiler(ErrorLog errorLog, SymbolTable symbolTable, string file)
 {
     this.errorLog = errorLog;
     this.symbolTable = symbolTable;
 }
Пример #10
0
 public FunctionAnalyser(ErrorLog errorLog, SymbolTable symbolTable)
 {
     this.errorLog = errorLog;
     this.symbolTable = symbolTable;
 }
Пример #11
0
 public RootAnalyser(ErrorLog errorLog, SymbolTable symbolTable)
 {
     this.errorLog    = errorLog;
     this.symbolTable = symbolTable;
 }
Пример #12
0
		public ModuleCompiler (SymbolTable symbolTable, IodineModule module)
		{
			this.symbolTable = symbolTable;
			this.module = module;
			functionCompiler = new FunctionCompiler (symbolTable, module.Initializer);
		}
Пример #13
0
 public RootAnalyser(ErrorLog errorLog, SymbolTable symbolTable)
 {
     this.errorLog = errorLog;
     this.symbolTable = symbolTable;
 }
Пример #14
0
 public FunctionAnalyser(ErrorLog errorLog, SymbolTable symbolTable)
 {
     this.errorLog    = errorLog;
     this.symbolTable = symbolTable;
 }