refactor: update parser root statement
This commit is contained in:
parent
9b1b165c43
commit
654d96028c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user