Package weasel.interpreter.bytecode

Examples of weasel.interpreter.bytecode.WeaselInstructionReturn


        throw new WeaselCompilerException(token.line, "return need to return %s", retClass);
      }
      WeaselCompilerReturn wcr = tree.compile(compiler, compilerHelpher, null, retClass, null, false);
      instructions = wcr.getInstructions();
      WeaselTree.autoCast(compiler, wcr.getReturnType(), retClass, token.line, instructions, true);
      instructions.add(token.line, new WeaselInstructionReturn(compilerHelpher.getVarCount()));
    }
    return new WeaselCompilerReturnInstructionList(instructions, new WeaselGenericClass(compiler.baseTypes.voidClass));
  }
View Full Code Here


        while(token.tokenType!=WeaselTokenType.SEMICOLON && iterator.hasNext()){
          token = iterator.next();
        }
      }
    }
    instructions.add(0, new WeaselInstructionReturn(block.varsToPop()));
    System.out.println(instructions);
    this.instructions = instructions.getInstructions();
  }
View Full Code Here

TOP

Related Classes of weasel.interpreter.bytecode.WeaselInstructionReturn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.