* if in is invalid no AST will be generated (getRoot() will return null)
*/
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) {