Exemple #1
0
 public abstract void Compile(sunCompiler compiler, sunStorableSymbol symbol);
Exemple #2
0
 public override void CompileSet(sunCompiler compiler)
 {
     // checks against this have to be implemented at a higher level
     throw new InvalidOperationException();
 }
Exemple #3
0
        public override void Compile(sunCompiler compiler)
        {
            var operatorStack = new Stack <sunOperator>(32);

            CompileExpression(compiler, this, operatorStack);
        }
Exemple #4
0
 public override void CompileDec(sunCompiler compiler)
 {
     OpenRelocation(new sunVariableDecSite(compiler.Binary, this));
 }
Exemple #5
0
 public override void CompileGet(sunCompiler compiler)
 {
     mExpression.Compile(compiler);
 }
Exemple #6
0
 public virtual void CompileInc(sunCompiler compiler)
 {
     CompileGet(compiler);
     compiler.Binary.WriteINT(1);
     compiler.Binary.WriteADD();
 }
Exemple #7
0
 public virtual void CompileDec(sunCompiler compiler)
 {
     CompileGet(compiler);
     compiler.Binary.WriteINT(1);
     compiler.Binary.WriteSUB();
 }
Exemple #8
0
 public override void Compile(sunCompiler compiler)
 {
     CompileGet(compiler);
 }
Exemple #9
0
 public abstract void CompileSet(sunCompiler compiler);
Exemple #10
0
 public override void Compile(sunCompiler compiler)
 {
     // don't compile builtins
     ++mCompiles;
 }
Exemple #11
0
 public override sunRelocation CreateCallSite(sunCompiler compiler, int argCount)
 {
     return(new sunFunctionCallSite(compiler.Binary, this, argCount));
 }
Exemple #12
0
 public abstract sunRelocation CreateCallSite(sunCompiler compiler, int argCount);
Exemple #13
0
        public override void Compile(sunCompiler compiler)
        {
            var index = compiler.Context.DataTable.Add(Value);

            compiler.Binary.WriteSTR(index);
        }
Exemple #14
0
 public override void Compile(sunCompiler compiler)
 {
     compiler.Binary.WriteADR(Value);
 }
Exemple #15
0
 public override void Compile(sunCompiler compiler)
 {
     compiler.Binary.WriteBAND();
 }
Exemple #16
0
 public virtual void Compile(sunCompiler compiler, sunStorableSymbol symbol, sunExpression expression)
 {
     expression.Compile(compiler);
     symbol.CompileSet(compiler);
 }