From 654d96028c97acc68762252ee378bfd96de49e65 Mon Sep 17 00:00:00 2001 From: xiaowei Date: Thu, 17 Sep 2020 20:54:45 +0800 Subject: [PATCH] refactor: update parser root statement --- src/parser/common/BasicParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }