hraberg/Shen.java — pull request #3 by artella-coding (2013-06-07 12:53:46+00:00)
Title: Improving error reporting regarding stackoverflows and making easier running on 32 bit systems

1)Making changes to the pom.xml file in order to allow one to run the program on windows XP (from within IntelliJ). The problem with previous version was that the symbolic link in the resources folder would not work on windows XP

2)Previously the Shen.compile function was encountering a stackoverflow on 32 bit systems. Irrespective of this the "finally" block was trying to output the contents of a null reference (compiler.bytes) to a file, thus creating an empty declarations.class file. Upon a second running of the program, this empty file was detected and loaded. Thus even if one appropriately increased the stack size, the program would still fail.

Now an error message is reported, and furthermore if compiler.bytes is a null reference, an empty .class file is not created.

3)Changed the scripts to allow ./build to work on 32 bit linux.