Package wyvern.targets.Common.wyvernIL.interpreter.core

Examples of wyvern.targets.Common.wyvernIL.interpreter.core.Interpreter


    for (int i = 0; i < args.size(); i++) {
      BytecodeValue val = args.get(i);
      String name = params.get(i);
      context.addToContext(name, val);
    }
    Interpreter interperter = new Interpreter(body, context);
    BytecodeValue res = interperter.execute();
    return res;
  }
View Full Code Here


  public BytecodeValue runTest(String s) {
    ArrayList<String> strs = new ArrayList<>();
    strs.add(s);
    TypedAST pair = wyvern.stdlib.Compiler.compileSources("in1", strs);
    List<Statement> statements = getResult(pair);
    interperter = new Interpreter(statements);
   
    if(PRINTS_ON) {
      System.out.println("Instructions:");
      for (Statement statement : statements) {
        System.out.println(statement.getClass().getSimpleName() + " : "
View Full Code Here

TOP

Related Classes of wyvern.targets.Common.wyvernIL.interpreter.core.Interpreter

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.