refactor: update parser root statement

This commit is contained in:
xiaowei 2020-09-17 20:54:45 +08:00
parent 9b1b165c43
commit 654d96028c

View File

@ -89,7 +89,7 @@ export default abstract class BasicParser<C = any> {
const parser = this.createParser(input);
this._parser = parser;
const tree = parser.statement();
const tree = parser.program();
return tree.toStringTree(parser.ruleNames);
}