Issue #41 exposed a big mistake in rewriting the Scanner taken from lampepfl/dotty from Scala to Java. Java doesn't support TCO (Tail call optimizations) anymore and since the Scanner used quite a bit of it, some (even trivial to scan) files crashed with StackOverflowError.
In this PR I refactored some pieces of the code to factor for the more common problematic files.
Also added default.nix, since I had problems with running the project without nix.
fixes #41
Issue #41 exposed a big mistake in rewriting the
Scanner
taken fromlampepfl/dotty
from Scala to Java. Java doesn't support TCO (Tail call optimizations) anymore and since theScanner
used quite a bit of it, some (even trivial to scan) files crashed with StackOverflowError.In this PR I refactored some pieces of the code to factor for the more common problematic files.
Also added
default.nix
, since I had problems with running the project without nix.