Open fabien0102 opened 5 years ago
Hi! First of all, thank for this amazing package, it's very nice to have antlr available in browser side 😃
I just have some little mismatches between the PslParser.js and the PslParser.d.ts files.
PslParser.js
PslParser.d.ts
Here my repro steps and bit more details:
antlr4-tool -l ts -o src/parser Grammar.g4
grammar Grammar; schema: 'schema' (schemaParams); schemaParams: '(' (schemaParam (',' schemaParam)*)? ')'; schemaParam: ('a' | 'b' | 'c')*;
SchemaParamsContext.prototype.schemaParam = function(i) { if(i===undefined) { i = null; } if(i===null) { return this.getTypedRuleContexts(SchemaParamContext); } else { return this.getTypedRuleContext(SchemaParamContext,i); } };
export declare class SchemaParamsContext extends ParserRuleContext { }
export declare class SchemaParamsContext extends ParserRuleContext { + schemaParam(): SchemaParamContext; }
@fabien0102 I'll see what I can do to fix these issues soon. Thanks again your patience and for reporting.
Hi! First of all, thank for this amazing package, it's very nice to have antlr available in browser side 😃
I just have some little mismatches between the
PslParser.js
and thePslParser.d.ts
files.Here my repro steps and bit more details:
Command
The grammar
GrammarParser.js
GrammarParser.d.ts (actual)
GrammarParser.d.ts (expected)