chore: Cleanup

This commit is contained in:
Sidharth Vinod
2022-09-08 16:09:04 +05:30
parent 9164d8b57f
commit f60761609c

View File

@@ -20,11 +20,6 @@ const InfoLexer = new Lexer(allTokens);
class InfoParser extends EmbeddedActionsParser { class InfoParser extends EmbeddedActionsParser {
constructor() { constructor() {
super(allTokens); super(allTokens);
const $ = this;
// very important to call this after all the rules have been defined.
// otherwise the parser may not work correctly as it will lack information
// derived during the self analysis phase.
this.performSelfAnalysis(); this.performSelfAnalysis();
} }
@@ -32,6 +27,7 @@ class InfoParser extends EmbeddedActionsParser {
super.reset(); super.reset();
infoDb.clear(); infoDb.clear();
} }
public infoDiagram = this.RULE('infoDiagram', () => { public infoDiagram = this.RULE('infoDiagram', () => {
this.MANY(() => { this.MANY(() => {
this.CONSUME(NewLine); this.CONSUME(NewLine);