public AtgAst(InputStream in) {
try {
Scanner scanner = new Scanner(in);
UTF8BufferUtil.forceUseOfUTF8Buffer(scanner); //workaround for UTF8-files without BOM
Parser parser = new Parser(scanner);
parser.Parse();
root = parser.getRoot();
} catch (Exception e) {
e.printStackTrace();
root = null;
}
}