Пример #1
0
 /// <summary>
 /// Pop the current live variables.
 /// </summary>
 public void PopScope()
 {
     scope = (ScopeDeclContext)scope.Parent;
 }
Пример #2
0
 public CodeGen(Module Module) : base(Module ?? new Module())
 {
     expressionCompiler = new CompileExpression(this);
     statementCompiler  = new CompileStatement(this);
     scope = new ScopeDeclContext(this);
 }
Пример #3
0
 /// <summary>
 /// Push a new scope for live variables.
 /// </summary>
 public void PushScope()
 {
     scope = new ScopeDeclContext(scope);
 }