Package weasel.compiler

Examples of weasel.compiler.WeaselCompiler


  }
 
  public static void main(String[] args) throws WeaselCompilerException {

    //System.out.println(tokenList);
    WeaselCompiler compiler = new WeaselCompiler();
    try{
      compiler.compile(new Test());
      System.out.println(compiler.getWeaselClass("OBoolean;").toSource());
      WeaselGenericClass wgc = new WeaselGenericClass(compiler.getWeaselClass("OBoolean;"), new WeaselGenericClass[0]);
      System.out.println(wgc);
      wgc = wgc.getGenericSuperClass();
      System.out.println(wgc);
      System.out.println(wgc.getGenericMethod("operator<=>(OEnum;)I", new WeaselGenericClass[0]));
    }catch(Throwable e){
      e.printStackTrace();
    }
    for(WeaselCompilerMessage e:compiler.getExceptions()){
      System.err.println(e);
    }
  }
View Full Code Here


  public static void main(String[] args){
    HashMap<String, String> sources = new HashMap<String, String>();
    sources.put("Test", "public class Test { public abstract int[][] i(}");
    sources.put("int", "public class int {}");
    WeaselCompiler compiler = new WeaselCompiler(sources);
    compiler.compile();
  }
View Full Code Here

TOP

Related Classes of weasel.compiler.WeaselCompiler

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.