I am trying to compile the Main class from the tutorial, but get an exception from the compiler. I am using yeti 0.9.9 on OS X with JDK 1.8.0_25. I have installed the yeti jar to my local Maven repo. What I am seeing follows. Thanks in advance for any help!
alandipert@alanputer:~ cat test.yeti
module fac.test;
fac x = fold (*) 1 [1 .. x];
class Main
static void main(String[] argv)
println (fac 5)
end
alandipert@alanputer:~ java -jar ~/.m2/repository/yeti/yeti/0.9.9/yeti-0.9.9.jar -d target test.yeti
java.lang.ArrayIndexOutOfBoundsException: 5747
at yeti.renamed.asm3.ClassReader.readClass(Unknown Source)
at yeti.renamed.asm3.ClassReader.accept(Unknown Source)
at yeti.lang.compiler.ClassFinder.readClass(ClassFinder.java:205)
at yeti.lang.compiler.JavaType.resolve(JavaType.java:520)
at yeti.lang.compiler.JavaType.resolve(JavaType.java:534)
at yeti.lang.compiler.JavaType.resolve(JavaType.java:525)
at yeti.lang.compiler.JavaType.resolve(JavaType.java:890)
at yeti.lang.compiler.MethodDesc.check(DefineClass.java:78)
at yeti.lang.compiler.MethodDesc.check(DefineClass.java:84)
at yeti.lang.compiler.MethodDesc.defineClass(DefineClass.java:252)
at yeti.lang.compiler.YetiAnalyzer.analSeq(YetiAnalyzer.java:1106)
at yeti.lang.compiler.YetiAnalyzer.analyze(YetiAnalyzer.java:92)
at yeti.lang.compiler.YetiAnalyzer.toCode(YetiAnalyzer.java:1869)
at yeti.lang.compiler.Compiler.compile(Compiler.java:473)
at yeti.lang.compiler.Compiler.compileAll(Compiler.java:199)
at yeti.lang.compiler.eval$compileYetiFiles$._0(eval.yeti:335)
at yeti.lang.compiler.eval$compileYetiFiles$.apply(eval.yeti:326)
at yeti.lang.compiler.yeti._3(yeti.yeti:231)
at yeti.lang.compiler.yeti.main(yeti.yeti:224)