diff --git a/src/parser/common/BasicParser.ts b/src/parser/common/BasicParser.ts index 3165a37..a105522 100644 --- a/src/parser/common/BasicParser.ts +++ b/src/parser/common/BasicParser.ts @@ -89,7 +89,7 @@ export default abstract class BasicParser { const parser = this.createParser(input); this._parser = parser; - const tree = parser.statement(); + const tree = parser.program(); return tree.toStringTree(parser.ruleNames); }