Skip to content

Commit

Permalink
refactor: update parser root statement
Browse files Browse the repository at this point in the history
  • Loading branch information
wewoor committed Sep 17, 2020
1 parent 9b1b165 commit 654d960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser/common/BasicParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 654d960

Please sign in to comment.