Port parser to ANTLR4, add AST annotations.