Comparing version 0.5.0-alpha.3 to 0.5.0-alpha.4
@@ -28,3 +28,3 @@ /*! | ||
*/ | ||
reset(recognizer: Parser): void; | ||
reset(/*@NotNull*/ recognizer: Parser): void; | ||
/** | ||
@@ -48,3 +48,3 @@ * This method is called when an unexpected symbol is encountered during an | ||
*/ | ||
recoverInline(recognizer: Parser): Token; | ||
recoverInline(/*@NotNull*/ recognizer: Parser): Token; | ||
/** | ||
@@ -62,3 +62,3 @@ * This method is called to recover from exception `e`. This method is | ||
*/ | ||
recover(recognizer: Parser, e: RecognitionException): void; | ||
recover(/*@NotNull*/ recognizer: Parser, /*@NotNull*/ e: RecognitionException): void; | ||
/** | ||
@@ -83,3 +83,3 @@ * This method provides the error handler with an opportunity to handle | ||
*/ | ||
sync(recognizer: Parser): void; | ||
sync(/*@NotNull*/ recognizer: Parser): void; | ||
/** | ||
@@ -97,3 +97,3 @@ * Tests whether or not `recognizer` is in the process of recovering | ||
*/ | ||
inErrorRecoveryMode(recognizer: Parser): boolean; | ||
inErrorRecoveryMode(/*@NotNull*/ recognizer: Parser): boolean; | ||
/** | ||
@@ -105,3 +105,3 @@ * This method is called by when the parser successfully matches an input | ||
*/ | ||
reportMatch(recognizer: Parser): void; | ||
reportMatch(/*@NotNull*/ recognizer: Parser): void; | ||
/** | ||
@@ -108,0 +108,0 @@ * Report any kind of {@link RecognitionException}. This method is called by |
@@ -39,4 +39,4 @@ /*! | ||
*/ | ||
readonly index: number; | ||
readonly size: number; | ||
get index(): number; | ||
get size(): number; | ||
/** mark/release do nothing; we have entire buffer */ | ||
@@ -50,4 +50,4 @@ mark(): number; | ||
getText(interval: Interval): string; | ||
readonly sourceName: string; | ||
get sourceName(): string; | ||
toString(): string; | ||
} |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ANTLRInputStream = void 0; | ||
const assert = require("assert"); | ||
@@ -16,0 +17,0 @@ const Decorators_1 = require("./Decorators"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AbstractPredicateTransition = void 0; | ||
const Transition_1 = require("./Transition"); | ||
@@ -9,0 +10,0 @@ /** |
@@ -13,6 +13,6 @@ /*! | ||
constructor(target: ATNState, ruleIndex: number, actionIndex?: number, isCtxDependent?: boolean); | ||
readonly serializationType: TransitionType; | ||
readonly isEpsilon: boolean; | ||
get serializationType(): TransitionType; | ||
get isEpsilon(): boolean; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ActionTransition = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ const Transition_1 = require("./Transition"); |
@@ -59,3 +59,3 @@ /*! | ||
*/ | ||
readonly ambiguousAlternatives: BitSet; | ||
get ambiguousAlternatives(): BitSet; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AmbiguityInfo = void 0; | ||
const DecisionEventInfo_1 = require("./DecisionEventInfo"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -62,3 +62,3 @@ /*! | ||
clearDFA(): void; | ||
readonly contextCacheSize: number; | ||
get contextCacheSize(): number; | ||
getCachedContext(context: PredictionContext): PredictionContext; | ||
@@ -71,3 +71,3 @@ getDecisionToDFA(): DFA[]; | ||
*/ | ||
nextTokens(s: ATNState, ctx: PredictionContext): IntervalSet; | ||
nextTokens(s: ATNState, /*@NotNull*/ ctx: PredictionContext): IntervalSet; | ||
/** | ||
@@ -78,3 +78,3 @@ * Compute the set of valid tokens that can occur starting in `s` and | ||
*/ | ||
nextTokens(s: ATNState): IntervalSet; | ||
nextTokens(/*@NotNull*/ s: ATNState): IntervalSet; | ||
addState(state: ATNState): void; | ||
@@ -85,3 +85,3 @@ removeState(state: ATNState): void; | ||
getDecisionState(decision: number): DecisionState | undefined; | ||
readonly numberOfDecisions: number; | ||
get numberOfDecisions(): number; | ||
/** | ||
@@ -88,0 +88,0 @@ * Computes the set of input symbols which could follow ATN state number |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATN = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:25.1063510-07:00 | ||
@@ -18,0 +19,0 @@ const Array2DHashMap_1 = require("../misc/Array2DHashMap"); |
@@ -57,13 +57,14 @@ /*! | ||
private _context; | ||
constructor(state: ATNState, alt: number, context: PredictionContext); | ||
constructor(state: ATNState, c: ATNConfig, context: PredictionContext); | ||
static create(state: ATNState, alt: number, context: PredictionContext): ATNConfig; | ||
static create(state: ATNState, alt: number, context: PredictionContext, semanticContext: SemanticContext): ATNConfig; | ||
static create(state: ATNState, alt: number, context: PredictionContext, semanticContext: SemanticContext, lexerActionExecutor: LexerActionExecutor | undefined): ATNConfig; | ||
constructor(/*@NotNull*/ state: ATNState, alt: number, /*@NotNull*/ context: PredictionContext); | ||
constructor(/*@NotNull*/ state: ATNState, /*@NotNull*/ c: ATNConfig, /*@NotNull*/ context: PredictionContext); | ||
static create(/*@NotNull*/ state: ATNState, alt: number, context: PredictionContext): ATNConfig; | ||
static create(/*@NotNull*/ state: ATNState, alt: number, context: PredictionContext, /*@NotNull*/ semanticContext: SemanticContext): ATNConfig; | ||
static create(/*@NotNull*/ state: ATNState, alt: number, context: PredictionContext, /*@*/ semanticContext: SemanticContext, lexerActionExecutor: LexerActionExecutor | undefined): ATNConfig; | ||
/** Gets the ATN state associated with this configuration */ | ||
readonly state: ATNState; | ||
get state(): ATNState; | ||
/** What alt (or lexer rule) is predicted by this configuration */ | ||
readonly alt: number; | ||
context: PredictionContext; | ||
readonly reachesIntoOuterContext: boolean; | ||
get alt(): number; | ||
get context(): PredictionContext; | ||
set context(context: PredictionContext); | ||
get reachesIntoOuterContext(): boolean; | ||
/** | ||
@@ -80,13 +81,14 @@ * We cannot execute predicates dependent upon local context unless | ||
*/ | ||
outerContextDepth: number; | ||
readonly lexerActionExecutor: LexerActionExecutor | undefined; | ||
readonly semanticContext: SemanticContext; | ||
readonly hasPassedThroughNonGreedyDecision: boolean; | ||
get outerContextDepth(): number; | ||
set outerContextDepth(outerContextDepth: number); | ||
get lexerActionExecutor(): LexerActionExecutor | undefined; | ||
get semanticContext(): SemanticContext; | ||
get hasPassedThroughNonGreedyDecision(): boolean; | ||
clone(): ATNConfig; | ||
transform(state: ATNState, checkNonGreedy: boolean): ATNConfig; | ||
transform(state: ATNState, checkNonGreedy: boolean, semanticContext: SemanticContext): ATNConfig; | ||
transform(state: ATNState, checkNonGreedy: boolean, context: PredictionContext): ATNConfig; | ||
transform(state: ATNState, checkNonGreedy: boolean, lexerActionExecutor: LexerActionExecutor): ATNConfig; | ||
private transformImpl(state, context, semanticContext, checkNonGreedy, lexerActionExecutor); | ||
private static checkNonGreedyDecision(source, target); | ||
transform(/*@NotNull*/ state: ATNState, checkNonGreedy: boolean): ATNConfig; | ||
transform(/*@NotNull*/ state: ATNState, checkNonGreedy: boolean, /*@NotNull*/ semanticContext: SemanticContext): ATNConfig; | ||
transform(/*@NotNull*/ state: ATNState, checkNonGreedy: boolean, context: PredictionContext): ATNConfig; | ||
transform(/*@NotNull*/ state: ATNState, checkNonGreedy: boolean, lexerActionExecutor: LexerActionExecutor): ATNConfig; | ||
private transformImpl; | ||
private static checkNonGreedyDecision; | ||
appendContext(context: number, contextCache: PredictionContextCache): ATNConfig; | ||
@@ -120,3 +122,4 @@ appendContext(context: PredictionContext, contextCache: PredictionContextCache): ATNConfig; | ||
contains(subconfig: ATNConfig): boolean; | ||
isPrecedenceFilterSuppressed: boolean; | ||
get isPrecedenceFilterSuppressed(): boolean; | ||
set isPrecedenceFilterSuppressed(value: boolean); | ||
/** An ATN configuration is equal to another if both have | ||
@@ -123,0 +126,0 @@ * the same state, they predict the same alternative, and |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNConfig = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:25.2796692-07:00 | ||
@@ -18,0 +19,0 @@ const Array2DHashMap_1 = require("../misc/Array2DHashMap"); |
@@ -72,9 +72,10 @@ /*! | ||
getRepresentedAlternatives(): BitSet; | ||
readonly isReadOnly: boolean; | ||
isOutermostConfigSet: boolean; | ||
get isReadOnly(): boolean; | ||
get isOutermostConfigSet(): boolean; | ||
set isOutermostConfigSet(outermostConfigSet: boolean); | ||
getStates(): Array2DHashSet<ATNState>; | ||
optimizeConfigs(interpreter: ATNSimulator): void; | ||
clone(readonly: boolean): ATNConfigSet; | ||
readonly size: number; | ||
readonly isEmpty: boolean; | ||
get size(): number; | ||
get isEmpty(): boolean; | ||
contains(o: any): boolean; | ||
@@ -85,4 +86,4 @@ [Symbol.iterator](): IterableIterator<ATNConfig>; | ||
add(e: ATNConfig, contextCache: PredictionContextCache | undefined): boolean; | ||
private updatePropertiesForMergedConfig(config); | ||
private updatePropertiesForAddedConfig(config); | ||
private updatePropertiesForMergedConfig; | ||
private updatePropertiesForAddedConfig; | ||
protected canMerge(left: ATNConfig, leftKey: { | ||
@@ -104,10 +105,12 @@ state: number; | ||
toString(showContext: boolean): string; | ||
readonly uniqueAlt: number; | ||
hasSemanticContext: boolean; | ||
conflictInfo: ConflictInfo | undefined; | ||
readonly conflictingAlts: BitSet | undefined; | ||
readonly isExactConflict: boolean; | ||
readonly dipsIntoOuterContext: boolean; | ||
get uniqueAlt(): number; | ||
get hasSemanticContext(): boolean; | ||
set hasSemanticContext(value: boolean); | ||
get conflictInfo(): ConflictInfo | undefined; | ||
set conflictInfo(conflictInfo: ConflictInfo | undefined); | ||
get conflictingAlts(): BitSet | undefined; | ||
get isExactConflict(): boolean; | ||
get dipsIntoOuterContext(): boolean; | ||
get(index: number): ATNConfig; | ||
protected ensureWritable(): void; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNConfigSet = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:25.5488013-07:00 | ||
@@ -15,0 +16,0 @@ const Array2DHashMap_1 = require("../misc/Array2DHashMap"); |
@@ -16,9 +16,12 @@ /*! | ||
constructor(options?: ATNDeserializationOptions); | ||
static readonly defaultOptions: ATNDeserializationOptions; | ||
readonly isReadOnly: boolean; | ||
static get defaultOptions(): ATNDeserializationOptions; | ||
get isReadOnly(): boolean; | ||
makeReadOnly(): void; | ||
isVerifyATN: boolean; | ||
isGenerateRuleBypassTransitions: boolean; | ||
isOptimize: boolean; | ||
get isVerifyATN(): boolean; | ||
set isVerifyATN(verifyATN: boolean); | ||
get isGenerateRuleBypassTransitions(): boolean; | ||
set isGenerateRuleBypassTransitions(generateRuleBypassTransitions: boolean); | ||
get isOptimize(): boolean; | ||
set isOptimize(optimize: boolean); | ||
protected throwIfReadOnly(): void; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNDeserializationOptions = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:25.8187912-07:00 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -20,3 +20,3 @@ /*! | ||
export declare class ATNDeserializer { | ||
static readonly SERIALIZED_VERSION: number; | ||
static get SERIALIZED_VERSION(): number; | ||
/** | ||
@@ -63,5 +63,5 @@ * This is the earliest supported serialized UUID. | ||
protected static isFeatureSupported(feature: UUID, actualUuid: UUID): boolean; | ||
private static getUnicodeDeserializer(mode); | ||
private static getUnicodeDeserializer; | ||
deserialize(data: Uint16Array): ATN; | ||
private deserializeSets(data, p, sets, unicodeDeserializer); | ||
private deserializeSets; | ||
/** | ||
@@ -77,7 +77,7 @@ * Analyze the {@link StarLoopEntryState} states in the specified ATN to set | ||
protected checkCondition(condition: boolean, message?: string): void; | ||
private static inlineSetRules(atn); | ||
private static combineChainedEpsilons(atn); | ||
private static optimizeSets(atn, preserveOrder); | ||
private static identifyTailCalls(atn); | ||
private static testTailCall(atn, transition, optimizedPath); | ||
private static inlineSetRules; | ||
private static combineChainedEpsilons; | ||
private static optimizeSets; | ||
private static identifyTailCalls; | ||
private static testTailCall; | ||
protected static toInt(c: number): number; | ||
@@ -84,0 +84,0 @@ protected static toInt32(data: Uint16Array, offset: number): number; |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNDeserializer = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:25.9683447-07:00 | ||
@@ -73,3 +74,3 @@ const ActionTransition_1 = require("./ActionTransition"); | ||
constructor(deserializationOptions) { | ||
if (deserializationOptions == null) { | ||
if (deserializationOptions === undefined) { | ||
deserializationOptions = ATNDeserializationOptions_1.ATNDeserializationOptions.defaultOptions; | ||
@@ -321,7 +322,7 @@ } | ||
// we need to know the end state to set its start state | ||
if (state.endState == null) { | ||
if (state.endState === undefined) { | ||
throw new Error("IllegalStateException"); | ||
} | ||
// block end states can only be associated to a single block start state | ||
if (state.endState.startState != null) { | ||
if (state.endState.startState !== undefined) { | ||
throw new Error("IllegalStateException"); | ||
@@ -570,3 +571,3 @@ } | ||
for (let state of atn.states) { | ||
this.checkCondition(state != null, "ATN states should not be null."); | ||
this.checkCondition(state !== undefined, "ATN states should not be undefined."); | ||
if (state.stateType === ATNStateType_1.ATNStateType.INVALID_TYPE) { | ||
@@ -577,7 +578,7 @@ continue; | ||
if (state instanceof PlusBlockStartState_1.PlusBlockStartState) { | ||
this.checkCondition(state.loopBackState != null); | ||
this.checkCondition(state.loopBackState !== undefined); | ||
} | ||
if (state instanceof StarLoopEntryState_1.StarLoopEntryState) { | ||
let starLoopEntryState = state; | ||
this.checkCondition(starLoopEntryState.loopBackState != null); | ||
this.checkCondition(starLoopEntryState.loopBackState !== undefined); | ||
this.checkCondition(starLoopEntryState.numberOfTransitions === 2); | ||
@@ -601,12 +602,12 @@ if (starLoopEntryState.transition(0).target instanceof StarBlockStartState_1.StarBlockStartState) { | ||
if (state instanceof LoopEndState_1.LoopEndState) { | ||
this.checkCondition(state.loopBackState != null); | ||
this.checkCondition(state.loopBackState !== undefined); | ||
} | ||
if (state instanceof RuleStartState_1.RuleStartState) { | ||
this.checkCondition(state.stopState != null); | ||
this.checkCondition(state.stopState !== undefined); | ||
} | ||
if (state instanceof BlockStartState_1.BlockStartState) { | ||
this.checkCondition(state.endState != null); | ||
this.checkCondition(state.endState !== undefined); | ||
} | ||
if (state instanceof BlockEndState_1.BlockEndState) { | ||
this.checkCondition(state.startState != null); | ||
this.checkCondition(state.startState !== undefined); | ||
} | ||
@@ -671,3 +672,3 @@ if (state instanceof DecisionState_1.DecisionState) { | ||
if (!(transition instanceof RuleTransition_1.RuleTransition)) { | ||
if (optimizedTransitions != null) { | ||
if (optimizedTransitions !== undefined) { | ||
optimizedTransitions.push(transition); | ||
@@ -679,4 +680,4 @@ } | ||
let effective = ruleToInlineTransition[ruleTransition.target.ruleIndex]; | ||
if (effective == null) { | ||
if (optimizedTransitions != null) { | ||
if (effective === undefined) { | ||
if (optimizedTransitions !== undefined) { | ||
optimizedTransitions.push(transition); | ||
@@ -686,3 +687,3 @@ } | ||
} | ||
if (optimizedTransitions == null) { | ||
if (optimizedTransitions === undefined) { | ||
optimizedTransitions = []; | ||
@@ -713,3 +714,3 @@ for (let j = 0; j < i; j++) { | ||
} | ||
if (optimizedTransitions != null) { | ||
if (optimizedTransitions !== undefined) { | ||
if (state.isOptimized) { | ||
@@ -744,3 +745,3 @@ while (state.numberOfOptimizedTransitions > 0) { | ||
|| !intermediate.onlyHasEpsilonTransitions) { | ||
if (optimizedTransitions != null) { | ||
if (optimizedTransitions !== undefined) { | ||
optimizedTransitions.push(transition); | ||
@@ -753,3 +754,3 @@ } | ||
|| intermediate.getOptimizedTransition(j).outermostPrecedenceReturn !== -1) { | ||
if (optimizedTransitions != null) { | ||
if (optimizedTransitions !== undefined) { | ||
optimizedTransitions.push(transition); | ||
@@ -761,3 +762,3 @@ } | ||
removedEdges++; | ||
if (optimizedTransitions == null) { | ||
if (optimizedTransitions === undefined) { | ||
optimizedTransitions = []; | ||
@@ -773,3 +774,3 @@ for (let j = 0; j < i; j++) { | ||
} | ||
if (optimizedTransitions != null) { | ||
if (optimizedTransitions !== undefined) { | ||
if (state.isOptimized) { | ||
@@ -776,0 +777,0 @@ while (state.numberOfOptimizedTransitions > 0) { |
@@ -10,3 +10,3 @@ /*! | ||
private static _ERROR; | ||
static readonly ERROR: DFAState; | ||
static get ERROR(): DFAState; | ||
atn: ATN; | ||
@@ -13,0 +13,0 @@ constructor(atn: ATN); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNSimulator = void 0; | ||
const ATNConfigSet_1 = require("./ATNConfigSet"); | ||
@@ -18,0 +19,0 @@ const DFAState_1 = require("../dfa/DFAState"); |
@@ -88,9 +88,9 @@ /*! | ||
*/ | ||
readonly nonStopStateNumber: number; | ||
get nonStopStateNumber(): number; | ||
hashCode(): number; | ||
equals(o: any): boolean; | ||
readonly isNonGreedyExitState: boolean; | ||
get isNonGreedyExitState(): boolean; | ||
toString(): string; | ||
getTransitions(): Transition[]; | ||
readonly numberOfTransitions: number; | ||
get numberOfTransitions(): number; | ||
addTransition(e: Transition, index?: number): void; | ||
@@ -100,7 +100,7 @@ transition(i: number): Transition; | ||
removeTransition(index: number): Transition; | ||
readonly abstract stateType: ATNStateType; | ||
readonly onlyHasEpsilonTransitions: boolean; | ||
abstract readonly stateType: ATNStateType; | ||
get onlyHasEpsilonTransitions(): boolean; | ||
setRuleIndex(ruleIndex: number): void; | ||
readonly isOptimized: boolean; | ||
readonly numberOfOptimizedTransitions: number; | ||
get isOptimized(): boolean; | ||
get numberOfOptimizedTransitions(): number; | ||
getOptimizedTransition(i: number): Transition; | ||
@@ -107,0 +107,0 @@ addOptimizedTransition(e: Transition): void; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNState = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -15,0 +16,0 @@ const INITIAL_NUM_TRANSITIONS = 4; |
@@ -18,3 +18,3 @@ /*! | ||
PLUS_LOOP_BACK = 11, | ||
LOOP_END = 12, | ||
LOOP_END = 12 | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNStateType = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:27.4734328-07:00 | ||
@@ -9,0 +10,0 @@ var ATNStateType; |
@@ -18,3 +18,3 @@ /*! | ||
*/ | ||
PARSER = 1, | ||
PARSER = 1 | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ATNType = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:27.6094030-07:00 | ||
@@ -9,0 +10,0 @@ /** |
@@ -14,6 +14,6 @@ /*! | ||
constructor(target: ATNState, label: number); | ||
readonly serializationType: TransitionType; | ||
readonly label: IntervalSet; | ||
get serializationType(): TransitionType; | ||
get label(): IntervalSet; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AtomTransition = void 0; | ||
const IntervalSet_1 = require("../misc/IntervalSet"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -12,3 +12,3 @@ /*! | ||
export declare class BasicBlockStartState extends BlockStartState { | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BasicBlockStartState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:27.7669801-07:00 | ||
@@ -15,0 +16,0 @@ const ATNStateType_1 = require("./ATNStateType"); |
@@ -12,3 +12,3 @@ /*! | ||
export declare class BasicState extends ATNState { | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BasicState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:27.8389930-07:00 | ||
@@ -15,0 +16,0 @@ const ATNState_1 = require("./ATNState"); |
@@ -11,3 +11,3 @@ /*! | ||
startState: BlockStartState; | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BlockEndState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:27.9125304-07:00 | ||
@@ -15,0 +16,0 @@ const ATNState_1 = require("./ATNState"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BlockStartState = void 0; | ||
const DecisionState_1 = require("./DecisionState"); | ||
@@ -9,0 +10,0 @@ /** The start of a regular `(...)` block. */ |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createWithCodePointRange = exports.createWithCodePoint = void 0; | ||
const Character = require("../misc/Character"); | ||
@@ -9,0 +10,0 @@ const AtomTransition_1 = require("./AtomTransition"); |
@@ -18,3 +18,3 @@ /*! | ||
*/ | ||
readonly conflictedAlts: BitSet; | ||
get conflictedAlts(): BitSet; | ||
/** | ||
@@ -33,5 +33,5 @@ * Gets whether or not the configuration conflict is an exact conflict. | ||
*/ | ||
readonly isExact: boolean; | ||
get isExact(): boolean; | ||
equals(obj: any): boolean; | ||
hashCode(): number; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ConflictInfo = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -15,0 +16,0 @@ const Utils = require("../misc/Utils"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ContextSensitivityInfo = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:28.1575933-07:00 | ||
@@ -18,0 +19,0 @@ const DecisionEventInfo_1 = require("./DecisionEventInfo"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DecisionEventInfo = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:28.2401032-07:00 | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DecisionInfo = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -15,0 +16,0 @@ /** |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DecisionState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:28.4381103-07:00 | ||
@@ -9,0 +10,0 @@ const ATNState_1 = require("./ATNState"); |
@@ -19,7 +19,7 @@ /*! | ||
*/ | ||
readonly outermostPrecedenceReturn: number; | ||
readonly serializationType: TransitionType; | ||
readonly isEpsilon: boolean; | ||
get outermostPrecedenceReturn(): number; | ||
get serializationType(): TransitionType; | ||
get isEpsilon(): boolean; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EpsilonTransition = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ const Transition_1 = require("./Transition"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ErrorInfo = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:28.7213647-07:00 | ||
@@ -18,0 +19,0 @@ const DecisionEventInfo_1 = require("./DecisionEventInfo"); |
150
atn/index.js
@@ -6,75 +6,83 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./AbstractPredicateTransition")); | ||
__export(require("./ActionTransition")); | ||
__export(require("./AmbiguityInfo")); | ||
__export(require("./ATN")); | ||
__export(require("./ATNConfig")); | ||
__export(require("./ATNConfigSet")); | ||
__export(require("./ATNDeserializationOptions")); | ||
__export(require("./ATNDeserializer")); | ||
__exportStar(require("./AbstractPredicateTransition"), exports); | ||
__exportStar(require("./ActionTransition"), exports); | ||
__exportStar(require("./AmbiguityInfo"), exports); | ||
__exportStar(require("./ATN"), exports); | ||
__exportStar(require("./ATNConfig"), exports); | ||
__exportStar(require("./ATNConfigSet"), exports); | ||
__exportStar(require("./ATNDeserializationOptions"), exports); | ||
__exportStar(require("./ATNDeserializer"), exports); | ||
// export * from "./ATNSerializer"; | ||
__export(require("./ATNSimulator")); | ||
__export(require("./ATNState")); | ||
__export(require("./ATNStateType")); | ||
__export(require("./ATNType")); | ||
__export(require("./AtomTransition")); | ||
__export(require("./BasicBlockStartState")); | ||
__export(require("./BasicState")); | ||
__export(require("./BlockEndState")); | ||
__export(require("./BlockStartState")); | ||
__export(require("./CodePointTransitions")); | ||
__export(require("./ConflictInfo")); | ||
__export(require("./ContextSensitivityInfo")); | ||
__export(require("./DecisionEventInfo")); | ||
__export(require("./DecisionInfo")); | ||
__export(require("./DecisionState")); | ||
__export(require("./EpsilonTransition")); | ||
__export(require("./ErrorInfo")); | ||
__export(require("./InvalidState")); | ||
__export(require("./LexerActionExecutor")); | ||
__export(require("./LexerActionType")); | ||
__export(require("./LexerATNSimulator")); | ||
__export(require("./LexerChannelAction")); | ||
__export(require("./LexerCustomAction")); | ||
__export(require("./LexerIndexedCustomAction")); | ||
__export(require("./LexerModeAction")); | ||
__export(require("./LexerMoreAction")); | ||
__export(require("./LexerPopModeAction")); | ||
__export(require("./LexerPushModeAction")); | ||
__export(require("./LexerSkipAction")); | ||
__export(require("./LexerTypeAction")); | ||
__export(require("./LL1Analyzer")); | ||
__export(require("./LookaheadEventInfo")); | ||
__export(require("./LoopEndState")); | ||
__export(require("./NotSetTransition")); | ||
__export(require("./OrderedATNConfigSet")); | ||
__export(require("./ParseInfo")); | ||
__export(require("./ParserATNSimulator")); | ||
__export(require("./PlusBlockStartState")); | ||
__export(require("./PlusLoopbackState")); | ||
__export(require("./PrecedencePredicateTransition")); | ||
__export(require("./PredicateEvalInfo")); | ||
__export(require("./PredicateTransition")); | ||
__export(require("./PredictionContext")); | ||
__export(require("./PredictionContextCache")); | ||
__export(require("./PredictionMode")); | ||
__export(require("./ProfilingATNSimulator")); | ||
__export(require("./RangeTransition")); | ||
__export(require("./RuleStartState")); | ||
__export(require("./RuleStopState")); | ||
__export(require("./RuleTransition")); | ||
__export(require("./SemanticContext")); | ||
__export(require("./SetTransition")); | ||
__export(require("./SimulatorState")); | ||
__export(require("./StarBlockStartState")); | ||
__export(require("./StarLoopbackState")); | ||
__export(require("./StarLoopEntryState")); | ||
__export(require("./TokensStartState")); | ||
__export(require("./Transition")); | ||
__export(require("./TransitionType")); | ||
__export(require("./WildcardTransition")); | ||
__exportStar(require("./ATNSimulator"), exports); | ||
__exportStar(require("./ATNState"), exports); | ||
__exportStar(require("./ATNStateType"), exports); | ||
__exportStar(require("./ATNType"), exports); | ||
__exportStar(require("./AtomTransition"), exports); | ||
__exportStar(require("./BasicBlockStartState"), exports); | ||
__exportStar(require("./BasicState"), exports); | ||
__exportStar(require("./BlockEndState"), exports); | ||
__exportStar(require("./BlockStartState"), exports); | ||
__exportStar(require("./CodePointTransitions"), exports); | ||
__exportStar(require("./ConflictInfo"), exports); | ||
__exportStar(require("./ContextSensitivityInfo"), exports); | ||
__exportStar(require("./DecisionEventInfo"), exports); | ||
__exportStar(require("./DecisionInfo"), exports); | ||
__exportStar(require("./DecisionState"), exports); | ||
__exportStar(require("./EpsilonTransition"), exports); | ||
__exportStar(require("./ErrorInfo"), exports); | ||
__exportStar(require("./InvalidState"), exports); | ||
__exportStar(require("./LexerAction"), exports); | ||
__exportStar(require("./LexerActionExecutor"), exports); | ||
__exportStar(require("./LexerActionType"), exports); | ||
__exportStar(require("./LexerATNSimulator"), exports); | ||
__exportStar(require("./LexerChannelAction"), exports); | ||
__exportStar(require("./LexerCustomAction"), exports); | ||
__exportStar(require("./LexerIndexedCustomAction"), exports); | ||
__exportStar(require("./LexerModeAction"), exports); | ||
__exportStar(require("./LexerMoreAction"), exports); | ||
__exportStar(require("./LexerPopModeAction"), exports); | ||
__exportStar(require("./LexerPushModeAction"), exports); | ||
__exportStar(require("./LexerSkipAction"), exports); | ||
__exportStar(require("./LexerTypeAction"), exports); | ||
__exportStar(require("./LL1Analyzer"), exports); | ||
__exportStar(require("./LookaheadEventInfo"), exports); | ||
__exportStar(require("./LoopEndState"), exports); | ||
__exportStar(require("./NotSetTransition"), exports); | ||
__exportStar(require("./OrderedATNConfigSet"), exports); | ||
__exportStar(require("./ParseInfo"), exports); | ||
__exportStar(require("./ParserATNSimulator"), exports); | ||
__exportStar(require("./PlusBlockStartState"), exports); | ||
__exportStar(require("./PlusLoopbackState"), exports); | ||
__exportStar(require("./PrecedencePredicateTransition"), exports); | ||
__exportStar(require("./PredicateEvalInfo"), exports); | ||
__exportStar(require("./PredicateTransition"), exports); | ||
__exportStar(require("./PredictionContext"), exports); | ||
__exportStar(require("./PredictionContextCache"), exports); | ||
__exportStar(require("./PredictionMode"), exports); | ||
__exportStar(require("./ProfilingATNSimulator"), exports); | ||
__exportStar(require("./RangeTransition"), exports); | ||
__exportStar(require("./RuleStartState"), exports); | ||
__exportStar(require("./RuleStopState"), exports); | ||
__exportStar(require("./RuleTransition"), exports); | ||
__exportStar(require("./SemanticContext"), exports); | ||
__exportStar(require("./SetTransition"), exports); | ||
__exportStar(require("./SimulatorState"), exports); | ||
__exportStar(require("./StarBlockStartState"), exports); | ||
__exportStar(require("./StarLoopbackState"), exports); | ||
__exportStar(require("./StarLoopEntryState"), exports); | ||
__exportStar(require("./TokensStartState"), exports); | ||
__exportStar(require("./Transition"), exports); | ||
__exportStar(require("./TransitionType"), exports); | ||
__exportStar(require("./WildcardTransition"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -12,3 +12,3 @@ /*! | ||
export declare class InvalidState extends BasicState { | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InvalidState = void 0; | ||
const ATNStateType_1 = require("./ATNStateType"); | ||
@@ -15,0 +16,0 @@ const BasicState_1 = require("./BasicState"); |
@@ -46,3 +46,3 @@ /*! | ||
*/ | ||
execute(lexer: Lexer): void; | ||
execute(/*@NotNull*/ lexer: Lexer): void; | ||
} |
@@ -81,3 +81,3 @@ /*! | ||
*/ | ||
readonly lexerActions: LexerAction[]; | ||
get lexerActions(): LexerAction[]; | ||
/** | ||
@@ -84,0 +84,0 @@ * Execute the actions encapsulated by this executor within the context of a |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerActionExecutor = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:28.8810453-07:00 | ||
@@ -18,0 +19,0 @@ const ArrayEqualityComparator_1 = require("../misc/ArrayEqualityComparator"); |
@@ -43,3 +43,3 @@ /*! | ||
*/ | ||
TYPE = 7, | ||
TYPE = 7 | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerActionType = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:29.0172086-07:00 | ||
@@ -9,0 +10,0 @@ /** |
@@ -33,5 +33,4 @@ /*! | ||
protected prevAccept: LexerATNSimulator.SimState; | ||
static match_calls: number; | ||
constructor(atn: ATN); | ||
constructor(atn: ATN, recog: Lexer | undefined); | ||
constructor(/*@NotNull*/ atn: ATN); | ||
constructor(/*@NotNull*/ atn: ATN, recog: Lexer | undefined); | ||
copyState(simulator: LexerATNSimulator): void; | ||
@@ -111,4 +110,4 @@ match(input: CharStream, mode: number): number; | ||
protected captureSimState(settings: LexerATNSimulator.SimState, input: CharStream, dfaState: DFAState): void; | ||
protected addDFAEdge(p: DFAState, t: number, q: ATNConfigSet): DFAState; | ||
protected addDFAEdge(p: DFAState, t: number, q: DFAState): void; | ||
protected addDFAEdge(/*@NotNull*/ p: DFAState, t: number, /*@NotNull*/ q: ATNConfigSet): DFAState; | ||
protected addDFAEdge(/*@NotNull*/ p: DFAState, t: number, /*@NotNull*/ q: DFAState): void; | ||
/** Add a new DFA state if there isn't one with this set of | ||
@@ -124,4 +123,6 @@ * configurations already. This method also detects the first | ||
getText(input: CharStream): string; | ||
line: number; | ||
charPositionInLine: number; | ||
get line(): number; | ||
set line(line: number); | ||
get charPositionInLine(): number; | ||
set charPositionInLine(charPositionInLine: number); | ||
consume(input: CharStream): void; | ||
@@ -128,0 +129,0 @@ getTokenName(t: number): string; |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerATNSimulator = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:29.1083066-07:00 | ||
@@ -62,3 +63,2 @@ const AcceptStateInfo_1 = require("../dfa/AcceptStateInfo"); | ||
match(input, mode) { | ||
LexerATNSimulator.match_calls++; | ||
this.mode = mode; | ||
@@ -610,3 +610,2 @@ let mark = input.mark(); | ||
}; | ||
LexerATNSimulator.match_calls = 0; | ||
__decorate([ | ||
@@ -613,0 +612,0 @@ Decorators_1.NotNull |
@@ -27,3 +27,3 @@ /*! | ||
*/ | ||
readonly channel: number; | ||
get channel(): number; | ||
/** | ||
@@ -33,3 +33,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -39,3 +39,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -42,0 +42,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerChannelAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -39,3 +39,3 @@ /*! | ||
*/ | ||
readonly ruleIndex: number; | ||
get ruleIndex(): number; | ||
/** | ||
@@ -46,3 +46,3 @@ * Gets the action index to use for calls to {@link Recognizer#action}. | ||
*/ | ||
readonly actionIndex: number; | ||
get actionIndex(): number; | ||
/** | ||
@@ -53,3 +53,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -66,3 +66,3 @@ * Gets whether the lexer action is position-dependent. Position-dependent | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -69,0 +69,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerCustomAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -46,3 +46,3 @@ /*! | ||
*/ | ||
readonly offset: number; | ||
get offset(): number; | ||
/** | ||
@@ -53,3 +53,3 @@ * Gets the lexer action to execute. | ||
*/ | ||
readonly action: LexerAction; | ||
get action(): LexerAction; | ||
/** | ||
@@ -61,3 +61,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -67,3 +67,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -70,0 +70,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerIndexedCustomAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -27,3 +27,3 @@ /*! | ||
*/ | ||
readonly mode: number; | ||
get mode(): number; | ||
/** | ||
@@ -33,3 +33,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -39,3 +39,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -42,0 +42,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerModeAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -26,3 +26,3 @@ /*! | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -32,3 +32,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -35,0 +35,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerMoreAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -26,3 +26,3 @@ /*! | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -32,3 +32,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -35,0 +35,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerPopModeAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -27,3 +27,3 @@ /*! | ||
*/ | ||
readonly mode: number; | ||
get mode(): number; | ||
/** | ||
@@ -33,3 +33,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -39,3 +39,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -42,0 +42,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerPushModeAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -26,3 +26,3 @@ /*! | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -32,3 +32,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -35,0 +35,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerSkipAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -26,3 +26,3 @@ /*! | ||
*/ | ||
readonly type: number; | ||
get type(): number; | ||
/** | ||
@@ -32,3 +32,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly actionType: LexerActionType; | ||
get actionType(): LexerActionType; | ||
/** | ||
@@ -38,3 +38,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly isPositionDependent: boolean; | ||
get isPositionDependent(): boolean; | ||
/** | ||
@@ -41,0 +41,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerTypeAction = void 0; | ||
const MurmurHash_1 = require("../misc/MurmurHash"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -46,3 +46,3 @@ /*! | ||
*/ | ||
LOOK(s: ATNState, ctx: PredictionContext): IntervalSet; | ||
LOOK(/*@NotNull*/ s: ATNState, /*@NotNull*/ ctx: PredictionContext): IntervalSet; | ||
/** | ||
@@ -66,3 +66,3 @@ * Compute set of tokens that can follow `s` in the ATN in the | ||
*/ | ||
LOOK(s: ATNState, ctx: PredictionContext, stopState: ATNState | null): IntervalSet; | ||
LOOK(/*@NotNull*/ s: ATNState, /*@NotNull*/ ctx: PredictionContext, stopState: ATNState | null): IntervalSet; | ||
/** | ||
@@ -69,0 +69,0 @@ * Compute set of tokens that can follow `s` in the ATN in the |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LL1Analyzer = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:30.4445360-07:00 | ||
@@ -18,0 +19,0 @@ const AbstractPredicateTransition_1 = require("./AbstractPredicateTransition"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LookaheadEventInfo = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:30.6852565-07:00 | ||
@@ -18,0 +19,0 @@ const DecisionEventInfo_1 = require("./DecisionEventInfo"); |
@@ -10,3 +10,3 @@ /*! | ||
loopBackState: ATNState; | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LoopEndState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:30.7737978-07:00 | ||
@@ -15,0 +16,0 @@ const ATNState_1 = require("./ATNState"); |
@@ -11,5 +11,5 @@ /*! | ||
constructor(target: ATNState, set: IntervalSet); | ||
readonly serializationType: TransitionType; | ||
get serializationType(): TransitionType; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NotSetTransition = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ const SetTransition_1 = require("./SetTransition"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OrderedATNConfigSet = void 0; | ||
const ATNConfigSet_1 = require("./ATNConfigSet"); | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseInfo = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ /** |
@@ -277,4 +277,4 @@ /*! | ||
reset(): void; | ||
adaptivePredict(input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined): number; | ||
adaptivePredict(input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined, useContext: boolean): number; | ||
adaptivePredict(/*@NotNull*/ input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined): number; | ||
adaptivePredict(/*@NotNull*/ input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined, useContext: boolean): number; | ||
protected getStartState(dfa: DFA, input: TokenStream, outerContext: ParserRuleContext, useContext: boolean): SimulatorState | undefined; | ||
@@ -542,3 +542,3 @@ protected execDFA(dfa: DFA, input: TokenStream, startIndex: number, state: SimulatorState): number; | ||
private static STATE_ALT_SORT_COMPARATOR; | ||
private isConflicted(configset, contextCache); | ||
private isConflicted; | ||
protected getConflictingAltsFromConfigSet(configs: ATNConfigSet): BitSet | undefined; | ||
@@ -561,3 +561,4 @@ getTokenName(t: number): string; | ||
/** If context sensitive parsing, we know it's ambiguity not conflict */ | ||
protected reportAmbiguity(dfa: DFA, D: DFAState, startIndex: number, stopIndex: number, exact: boolean, ambigAlts: BitSet, configs: ATNConfigSet): void; | ||
protected reportAmbiguity(dfa: DFA, D: DFAState, // the DFA state from execATN(): void that had SLL conflicts | ||
startIndex: number, stopIndex: number, exact: boolean, ambigAlts: BitSet, configs: ATNConfigSet): void; | ||
protected getReturnState(context: RuleContext): number; | ||
@@ -568,3 +569,3 @@ protected skipTailCalls(context: ParserRuleContext): ParserRuleContext; | ||
*/ | ||
readonly parser: Parser; | ||
get parser(): Parser; | ||
} |
@@ -15,3 +15,3 @@ /*! | ||
loopBackState: PlusLoopbackState; | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PlusBlockStartState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:34.9572142-07:00 | ||
@@ -15,0 +16,0 @@ const ATNStateType_1 = require("./ATNStateType"); |
@@ -11,3 +11,3 @@ /*! | ||
export declare class PlusLoopbackState extends DecisionState { | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PlusLoopbackState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:35.0257730-07:00 | ||
@@ -15,0 +16,0 @@ const ATNStateType_1 = require("./ATNStateType"); |
@@ -16,7 +16,7 @@ /*! | ||
constructor(target: ATNState, precedence: number); | ||
readonly serializationType: TransitionType; | ||
readonly isEpsilon: boolean; | ||
get serializationType(): TransitionType; | ||
get isEpsilon(): boolean; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
readonly predicate: SemanticContext.PrecedencePredicate; | ||
get predicate(): SemanticContext.PrecedencePredicate; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PrecedencePredicateTransition = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:35.0994191-07:00 | ||
@@ -18,0 +19,0 @@ const AbstractPredicateTransition_1 = require("./AbstractPredicateTransition"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PredicateEvalInfo = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:35.1914305-07:00 | ||
@@ -18,0 +19,0 @@ const DecisionEventInfo_1 = require("./DecisionEventInfo"); |
@@ -20,7 +20,7 @@ /*! | ||
constructor(target: ATNState, ruleIndex: number, predIndex: number, isCtxDependent: boolean); | ||
readonly serializationType: TransitionType; | ||
readonly isEpsilon: boolean; | ||
get serializationType(): TransitionType; | ||
get isEpsilon(): boolean; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
readonly predicate: SemanticContext.Predicate; | ||
get predicate(): SemanticContext.Predicate; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PredicateTransition = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:35.2826960-07:00 | ||
@@ -18,0 +19,0 @@ const AbstractPredicateTransition_1 = require("./AbstractPredicateTransition"); |
@@ -39,3 +39,3 @@ /*! | ||
protected static calculateHashCode(parents: PredictionContext[], returnStates: number[]): number; | ||
readonly abstract size: number; | ||
abstract readonly size: number; | ||
abstract getReturnState(index: number): number; | ||
@@ -47,4 +47,4 @@ abstract findReturnState(returnState: number): number; | ||
static fromRuleContext(atn: ATN, outerContext: RuleContext, fullContext?: boolean): PredictionContext; | ||
private static addEmptyContext(context); | ||
private static removeEmptyContext(context); | ||
private static addEmptyContext; | ||
private static removeEmptyContext; | ||
static join(context0: PredictionContext, context1: PredictionContext, contextCache?: PredictionContextCache): PredictionContext; | ||
@@ -56,4 +56,4 @@ static isEmptyLocal(context: PredictionContext): boolean; | ||
getChild(returnState: number): PredictionContext; | ||
readonly abstract isEmpty: boolean; | ||
readonly abstract hasEmpty: boolean; | ||
abstract readonly isEmpty: boolean; | ||
abstract readonly hasEmpty: boolean; | ||
hashCode(): number; | ||
@@ -70,5 +70,5 @@ abstract equals(o: any): boolean; | ||
findReturnState(returnState: number): number; | ||
readonly size: number; | ||
readonly isEmpty: boolean; | ||
readonly hasEmpty: boolean; | ||
get size(): number; | ||
get isEmpty(): boolean; | ||
get hasEmpty(): boolean; | ||
appendContext(suffix: PredictionContext, contextCache: PredictionContextCache): PredictionContext; | ||
@@ -89,3 +89,3 @@ protected addEmptyContext(): PredictionContext; | ||
static readonly INSTANCE: IdentityEqualityComparator; | ||
private IdentityEqualityComparator(); | ||
private IdentityEqualityComparator; | ||
hashCode(obj: PredictionContext): number; | ||
@@ -92,0 +92,0 @@ equals(a: PredictionContext, b: PredictionContext): boolean; |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SingletonPredictionContext = exports.PredictionContext = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:35.3812636-07:00 | ||
@@ -18,0 +19,0 @@ const Array2DHashMap_1 = require("../misc/Array2DHashMap"); |
@@ -35,4 +35,4 @@ /*! | ||
constructor(x: PredictionContext, y: PredictionContext); | ||
readonly x: PredictionContext; | ||
readonly y: PredictionContext; | ||
get x(): PredictionContext; | ||
get y(): PredictionContext; | ||
equals(o: any): boolean; | ||
@@ -39,0 +39,0 @@ hashCode(): number; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PredictionContextCache = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:35.6390614-07:00 | ||
@@ -72,4 +73,4 @@ const Array2DHashMap_1 = require("../misc/Array2DHashMap"); | ||
} | ||
exports.PredictionContextCache = PredictionContextCache; | ||
PredictionContextCache.UNCACHED = new PredictionContextCache(false); | ||
exports.PredictionContextCache = PredictionContextCache; | ||
(function (PredictionContextCache) { | ||
@@ -76,0 +77,0 @@ class PredictionContextAndInt { |
@@ -64,3 +64,3 @@ /*! | ||
*/ | ||
LL_EXACT_AMBIG_DETECTION = 2, | ||
LL_EXACT_AMBIG_DETECTION = 2 | ||
} | ||
@@ -89,3 +89,3 @@ export declare namespace PredictionMode { | ||
*/ | ||
function allConfigsInRuleStopStates(configs: ATNConfigSet): boolean; | ||
function allConfigsInRuleStopStates(/*@NotNull*/ configs: ATNConfigSet): boolean; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PredictionMode = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:36.2673893-07:00 | ||
@@ -15,0 +16,0 @@ const Array2DHashMap_1 = require("../misc/Array2DHashMap"); |
@@ -42,4 +42,4 @@ /*! | ||
constructor(parser: Parser); | ||
adaptivePredict(input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined): number; | ||
adaptivePredict(input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined, useContext: boolean): number; | ||
adaptivePredict(/*@NotNull*/ input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined): number; | ||
adaptivePredict(/*@NotNull*/ input: TokenStream, decision: number, outerContext: ParserRuleContext | undefined, useContext: boolean): number; | ||
protected getStartState(dfa: DFA, input: TokenStream, outerContext: ParserRuleContext, useContext: boolean): SimulatorState | undefined; | ||
@@ -46,0 +46,0 @@ protected computeStartState(dfa: DFA, globalContext: ParserRuleContext, useContext: boolean): SimulatorState; |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ProfilingATNSimulator = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:36.4188352-07:00 | ||
@@ -18,0 +19,0 @@ const AmbiguityInfo_1 = require("./AmbiguityInfo"); |
@@ -13,6 +13,6 @@ /*! | ||
constructor(target: ATNState, from: number, to: number); | ||
readonly serializationType: TransitionType; | ||
readonly label: IntervalSet; | ||
get serializationType(): TransitionType; | ||
get label(): IntervalSet; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RangeTransition = void 0; | ||
const IntervalSet_1 = require("../misc/IntervalSet"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -12,3 +12,3 @@ /*! | ||
leftFactored: boolean; | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleStartState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:36.6806851-07:00 | ||
@@ -15,0 +16,0 @@ const ATNState_1 = require("./ATNState"); |
@@ -13,4 +13,4 @@ /*! | ||
export declare class RuleStopState extends ATNState { | ||
readonly nonStopStateNumber: number; | ||
readonly stateType: ATNStateType; | ||
get nonStopStateNumber(): number; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleStopState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:36.7513856-07:00 | ||
@@ -15,0 +16,0 @@ const ATNState_1 = require("./ATNState"); |
@@ -19,5 +19,5 @@ /*! | ||
constructor(ruleStart: RuleStartState, ruleIndex: number, precedence: number, followState: ATNState); | ||
readonly serializationType: TransitionType; | ||
readonly isEpsilon: boolean; | ||
get serializationType(): TransitionType; | ||
get isEpsilon(): boolean; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleTransition = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ const Transition_1 = require("./Transition"); |
@@ -22,3 +22,3 @@ /*! | ||
*/ | ||
static readonly NONE: SemanticContext; | ||
static get NONE(): SemanticContext; | ||
/** | ||
@@ -102,3 +102,3 @@ * For context independent predicates, we evaluate them without a local | ||
*/ | ||
readonly abstract operands: Iterable<SemanticContext>; | ||
abstract readonly operands: Iterable<SemanticContext>; | ||
} | ||
@@ -112,3 +112,3 @@ /** | ||
constructor(a: SemanticContext, b: SemanticContext); | ||
readonly operands: Iterable<SemanticContext>; | ||
get operands(): Iterable<SemanticContext>; | ||
equals(obj: any): boolean; | ||
@@ -133,3 +133,3 @@ hashCode(): number; | ||
constructor(a: SemanticContext, b: SemanticContext); | ||
readonly operands: Iterable<SemanticContext>; | ||
get operands(): Iterable<SemanticContext>; | ||
equals(obj: any): boolean; | ||
@@ -136,0 +136,0 @@ hashCode(): number; |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SemanticContext = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:36.9521478-07:00 | ||
@@ -245,3 +246,2 @@ const Array2DHashSet_1 = require("../misc/Array2DHashSet"); | ||
Decorators_1.Override | ||
// precedence >= _precedenceStack.peek() | ||
], PrecedencePredicate.prototype, "toString", null); | ||
@@ -248,0 +248,0 @@ SemanticContext.PrecedencePredicate = PrecedencePredicate; |
@@ -13,6 +13,6 @@ /*! | ||
constructor(target: ATNState, set: IntervalSet); | ||
readonly serializationType: TransitionType; | ||
readonly label: IntervalSet; | ||
get serializationType(): TransitionType; | ||
get label(): IntervalSet; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SetTransition = void 0; | ||
const IntervalSet_1 = require("../misc/IntervalSet"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SimulatorState = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ const ParserRuleContext_1 = require("../ParserRuleContext"); |
@@ -9,3 +9,3 @@ /*! | ||
export declare class StarBlockStartState extends BlockStartState { | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StarBlockStartState = void 0; | ||
const ATNStateType_1 = require("./ATNStateType"); | ||
@@ -15,0 +16,0 @@ const BlockStartState_1 = require("./BlockStartState"); |
@@ -9,4 +9,4 @@ /*! | ||
export declare class StarLoopbackState extends ATNState { | ||
readonly loopEntryState: StarLoopEntryState; | ||
readonly stateType: ATNStateType; | ||
get loopEntryState(): StarLoopEntryState; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StarLoopbackState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:37.6368726-07:00 | ||
@@ -15,0 +16,0 @@ const ATNState_1 = require("./ATNState"); |
@@ -36,3 +36,3 @@ /*! | ||
precedenceLoopbackStates: BitSet; | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StarLoopEntryState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:37.7099201-07:00 | ||
@@ -15,0 +16,0 @@ const ATNStateType_1 = require("./ATNStateType"); |
@@ -9,3 +9,3 @@ /*! | ||
export declare class TokensStartState extends DecisionState { | ||
readonly stateType: ATNStateType; | ||
get stateType(): ATNStateType; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TokensStartState = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:37.7814046-07:00 | ||
@@ -15,0 +16,0 @@ const ATNStateType_1 = require("./ATNStateType"); |
@@ -25,3 +25,3 @@ /*! | ||
constructor(target: ATNState); | ||
readonly abstract serializationType: TransitionType; | ||
abstract readonly serializationType: TransitionType; | ||
/** | ||
@@ -36,5 +36,5 @@ * Determines if the transition is an "epsilon" transition. | ||
*/ | ||
readonly isEpsilon: boolean; | ||
readonly label: IntervalSet | undefined; | ||
get isEpsilon(): boolean; | ||
get label(): IntervalSet | undefined; | ||
abstract matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Transition = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ /** An ATN transition between any two ATN states. Subclasses define |
@@ -15,3 +15,3 @@ /*! | ||
WILDCARD = 9, | ||
PRECEDENCE = 10, | ||
PRECEDENCE = 10 | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TransitionType = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:37.8530496-07:00 | ||
@@ -9,0 +10,0 @@ var TransitionType; |
@@ -10,5 +10,5 @@ /*! | ||
constructor(target: ATNState); | ||
readonly serializationType: TransitionType; | ||
get serializationType(): TransitionType; | ||
matches(symbol: number, minVocabSymbol: number, maxVocabSymbol: number): boolean; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WildcardTransition = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ const Transition_1 = require("./Transition"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BailErrorStrategy = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:49.2855056-07:00 | ||
@@ -15,0 +16,0 @@ const DefaultErrorStrategy_1 = require("./DefaultErrorStrategy"); |
@@ -57,9 +57,10 @@ /*! | ||
constructor(tokenSource: TokenSource); | ||
get tokenSource(): TokenSource; | ||
/** Reset this token stream by setting its token source. */ | ||
tokenSource: TokenSource; | ||
readonly index: number; | ||
set tokenSource(tokenSource: TokenSource); | ||
get index(): number; | ||
mark(): number; | ||
release(marker: number): void; | ||
seek(index: number): void; | ||
readonly size: number; | ||
get size(): number; | ||
consume(): void; | ||
@@ -133,3 +134,3 @@ /** Make sure index `i` in tokens has a token. | ||
protected filterForChannel(from: number, to: number, channel: number): Token[]; | ||
readonly sourceName: string; | ||
get sourceName(): string; | ||
/** Get the text of all tokens in this buffer. */ | ||
@@ -142,4 +143,4 @@ getText(): string; | ||
fill(): void; | ||
private isWritableToken(t); | ||
private isToken(t); | ||
private isWritableToken; | ||
private isToken; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BufferedTokenStream = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:49.6074365-07:00 | ||
@@ -18,0 +19,0 @@ const assert = require("assert"); |
@@ -25,3 +25,3 @@ /*! | ||
*/ | ||
getText(interval: Interval): string; | ||
getText(/*@NotNull*/ interval: Interval): string; | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CharStreams = void 0; | ||
const CodePointBuffer_1 = require("./CodePointBuffer"); | ||
@@ -9,0 +10,0 @@ const CodePointCharStream_1 = require("./CodePointCharStream"); |
@@ -14,4 +14,5 @@ /*! | ||
static withArray(buffer: Uint8Array | Uint16Array | Int32Array): CodePointBuffer; | ||
position: number; | ||
readonly remaining: number; | ||
get position(): number; | ||
set position(newPosition: number); | ||
get remaining(): number; | ||
get(offset: number): number; | ||
@@ -29,13 +30,13 @@ array(): Uint8Array | Uint16Array | Int32Array; | ||
build(): CodePointBuffer; | ||
private static roundUpToNextPowerOfTwo(i); | ||
private static roundUpToNextPowerOfTwo; | ||
ensureRemaining(remainingNeeded: number): void; | ||
append(utf16In: Uint16Array): void; | ||
private appendArray(utf16In); | ||
private appendArrayByte(utf16In); | ||
private appendArrayChar(utf16In); | ||
private appendArrayInt(utf16In); | ||
private byteToCharBuffer(toAppend); | ||
private byteToIntBuffer(toAppend); | ||
private charToIntBuffer(toAppend); | ||
private appendArray; | ||
private appendArrayByte; | ||
private appendArrayChar; | ||
private appendArrayInt; | ||
private byteToCharBuffer; | ||
private byteToIntBuffer; | ||
private charToIntBuffer; | ||
} | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CodePointBuffer = void 0; | ||
const assert = require("assert"); | ||
@@ -9,0 +10,0 @@ const Character = require("./misc/Character"); |
@@ -22,3 +22,3 @@ /*! | ||
protected constructor(array: Uint8Array | Uint16Array | Int32Array, position: number, remaining: number, name: string); | ||
readonly internalStorage: Uint8Array | Uint16Array | Int32Array; | ||
get internalStorage(): Uint8Array | Uint16Array | Int32Array; | ||
/** | ||
@@ -35,4 +35,4 @@ * Constructs a {@link CodePointCharStream} which provides access | ||
consume(): void; | ||
readonly index: number; | ||
readonly size: number; | ||
get index(): number; | ||
get size(): number; | ||
/** mark/release do nothing; we have entire buffer */ | ||
@@ -42,3 +42,3 @@ mark(): number; | ||
seek(index: number): void; | ||
readonly sourceName: string; | ||
get sourceName(): string; | ||
toString(): string; | ||
@@ -45,0 +45,0 @@ LA(i: number): number; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CodePointCharStream = void 0; | ||
const assert = require("assert"); | ||
@@ -15,0 +16,0 @@ const IntStream_1 = require("./IntStream"); |
@@ -87,4 +87,7 @@ /*! | ||
static fromToken(oldToken: Token): CommonToken; | ||
type: number; | ||
line: number; | ||
get type(): number; | ||
set type(type: number); | ||
get line(): number; | ||
set line(line: number); | ||
get text(): string | undefined; | ||
/** | ||
@@ -99,12 +102,17 @@ * Explicitly set the text for this token. If {code text} is not | ||
*/ | ||
text: string | undefined; | ||
charPositionInLine: number; | ||
channel: number; | ||
startIndex: number; | ||
stopIndex: number; | ||
tokenIndex: number; | ||
readonly tokenSource: TokenSource | undefined; | ||
readonly inputStream: CharStream | undefined; | ||
set text(text: string | undefined); | ||
get charPositionInLine(): number; | ||
set charPositionInLine(charPositionInLine: number); | ||
get channel(): number; | ||
set channel(channel: number); | ||
get startIndex(): number; | ||
set startIndex(start: number); | ||
get stopIndex(): number; | ||
set stopIndex(stop: number); | ||
get tokenIndex(): number; | ||
set tokenIndex(index: number); | ||
get tokenSource(): TokenSource | undefined; | ||
get inputStream(): CharStream | undefined; | ||
toString(): string; | ||
toString<TSymbol, ATNInterpreter extends ATNSimulator>(recognizer: Recognizer<TSymbol, ATNInterpreter> | undefined): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CommonToken = void 0; | ||
const Interval_1 = require("./misc/Interval"); | ||
@@ -69,3 +70,3 @@ const Decorators_1 = require("./Decorators"); | ||
if (oldToken instanceof CommonToken) { | ||
result._text = oldToken.text; | ||
result._text = oldToken._text; | ||
result.source = oldToken.source; | ||
@@ -72,0 +73,0 @@ } |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CommonTokenFactory = void 0; | ||
const CommonToken_1 = require("./CommonToken"); | ||
@@ -15,0 +16,0 @@ const Interval_1 = require("./misc/Interval"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CommonTokenStream = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:50.3953157-07:00 | ||
@@ -18,0 +19,0 @@ const BufferedTokenStream_1 = require("./BufferedTokenStream"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ConsoleErrorListener = void 0; | ||
/** | ||
@@ -28,2 +29,3 @@ * | ||
} | ||
exports.ConsoleErrorListener = ConsoleErrorListener; | ||
/** | ||
@@ -33,3 +35,2 @@ * Provides a default instance of {@link ConsoleErrorListener}. | ||
ConsoleErrorListener.INSTANCE = new ConsoleErrorListener(); | ||
exports.ConsoleErrorListener = ConsoleErrorListener; | ||
//# sourceMappingURL=ConsoleErrorListener.js.map |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SuppressWarnings = exports.Override = exports.Nullable = exports.NotNull = void 0; | ||
function NotNull(target, propertyKey, propertyDescriptor) { | ||
@@ -9,0 +10,0 @@ // intentionally empty |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DefaultErrorStrategy = void 0; | ||
const ATNState_1 = require("./atn/ATNState"); | ||
@@ -18,0 +19,0 @@ const ATNStateType_1 = require("./atn/ATNStateType"); |
@@ -68,3 +68,3 @@ /*! | ||
*/ | ||
FOLLOWING = 9, | ||
FOLLOWING = 9 | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Dependents = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:51.1349829-07:00 | ||
@@ -9,0 +10,0 @@ /** |
@@ -27,3 +27,3 @@ /*! | ||
*/ | ||
readonly prediction: number; | ||
get prediction(): number; | ||
/** | ||
@@ -33,3 +33,3 @@ * Gets the {@link LexerActionExecutor} which can be used to execute actions | ||
*/ | ||
readonly lexerActionExecutor: LexerActionExecutor | undefined; | ||
get lexerActionExecutor(): LexerActionExecutor | undefined; | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AcceptStateInfo = void 0; | ||
/** | ||
@@ -9,0 +10,0 @@ * Stores information about a {@link DFAState} which is an accept state under |
@@ -64,3 +64,3 @@ /*! | ||
*/ | ||
readonly isPrecedenceDfa: boolean; | ||
get isPrecedenceDfa(): boolean; | ||
/** | ||
@@ -88,9 +88,9 @@ * Get the start state for a specific precedence value. | ||
setPrecedenceStartState(precedence: number, fullContext: boolean, startState: DFAState): void; | ||
readonly isEmpty: boolean; | ||
readonly isContextSensitive: boolean; | ||
get isEmpty(): boolean; | ||
get isContextSensitive(): boolean; | ||
addState(state: DFAState): DFAState; | ||
toString(): string; | ||
toString(vocabulary: Vocabulary): string; | ||
toString(vocabulary: Vocabulary, ruleNames: string[] | undefined): string; | ||
toString(/*@NotNull*/ vocabulary: Vocabulary): string; | ||
toString(/*@NotNull*/ vocabulary: Vocabulary, ruleNames: string[] | undefined): string; | ||
toLexerString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DFA = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:38.3567094-07:00 | ||
@@ -18,0 +19,0 @@ const Array2DHashSet_1 = require("../misc/Array2DHashSet"); |
@@ -16,5 +16,5 @@ /*! | ||
atn?: ATN; | ||
constructor(dfa: DFA, vocabulary: Vocabulary); | ||
constructor(dfa: DFA, parser: Recognizer<any, any> | undefined); | ||
constructor(dfa: DFA, vocabulary: Vocabulary, ruleNames: string[] | undefined, atn: ATN | undefined); | ||
constructor(/*@NotNull*/ dfa: DFA, /*@NotNull*/ vocabulary: Vocabulary); | ||
constructor(/*@NotNull*/ dfa: DFA, /*@Nullable*/ parser: Recognizer<any, any> | undefined); | ||
constructor(/*@NotNull*/ dfa: DFA, /*@NotNull*/ vocabulary: Vocabulary, /*@Nullable*/ ruleNames: string[] | undefined, /*@Nullable*/ atn: ATN | undefined); | ||
toString(): string; | ||
@@ -21,0 +21,0 @@ protected getContextLabel(i: number): string; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DFASerializer = void 0; | ||
const ATNSimulator_1 = require("../atn/ATNSimulator"); | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -55,10 +55,11 @@ /*! | ||
constructor(configs: ATNConfigSet); | ||
readonly isContextSensitive: boolean; | ||
get isContextSensitive(): boolean; | ||
isContextSymbol(symbol: number): boolean; | ||
setContextSymbol(symbol: number): void; | ||
setContextSensitive(atn: ATN): void; | ||
acceptStateInfo: AcceptStateInfo | undefined; | ||
readonly isAcceptState: boolean; | ||
readonly prediction: number; | ||
readonly lexerActionExecutor: LexerActionExecutor | undefined; | ||
get acceptStateInfo(): AcceptStateInfo | undefined; | ||
set acceptStateInfo(acceptStateInfo: AcceptStateInfo | undefined); | ||
get isAcceptState(): boolean; | ||
get prediction(): number; | ||
get lexerActionExecutor(): LexerActionExecutor | undefined; | ||
getTarget(symbol: number): DFAState | undefined; | ||
@@ -65,0 +66,0 @@ setTarget(symbol: number, target: DFAState): void; |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DFAState = void 0; | ||
const ATN_1 = require("../atn/ATN"); | ||
@@ -18,0 +19,0 @@ const BitSet_1 = require("../misc/BitSet"); |
@@ -6,11 +6,18 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./AcceptStateInfo")); | ||
__export(require("./DFA")); | ||
__export(require("./DFASerializer")); | ||
__export(require("./DFAState")); | ||
__export(require("./LexerDFASerializer")); | ||
__exportStar(require("./AcceptStateInfo"), exports); | ||
__exportStar(require("./DFA"), exports); | ||
__exportStar(require("./DFASerializer"), exports); | ||
__exportStar(require("./DFAState"), exports); | ||
__exportStar(require("./LexerDFASerializer"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerDFASerializer = void 0; | ||
const DFASerializer_1 = require("./DFASerializer"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DiagnosticErrorListener = void 0; | ||
const BitSet_1 = require("./misc/BitSet"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("./Decorators"); |
@@ -17,6 +17,6 @@ /*! | ||
constructor(recognizer: Parser, predicate?: string, message?: string); | ||
readonly ruleIndex: number; | ||
readonly predicateIndex: number; | ||
readonly predicate: string | undefined; | ||
private static formatMessage(predicate, message); | ||
get ruleIndex(): number; | ||
get predicateIndex(): number; | ||
get predicate(): string | undefined; | ||
private static formatMessage; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FailedPredicateException = void 0; | ||
const RecognitionException_1 = require("./RecognitionException"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("./Decorators"); |
96
index.js
@@ -6,43 +6,61 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./ANTLRErrorListener"), exports); | ||
__exportStar(require("./ANTLRErrorStrategy"), exports); | ||
// export * from "./ANTLRFileStream"; | ||
__export(require("./ANTLRInputStream")); | ||
__export(require("./BailErrorStrategy")); | ||
__export(require("./BufferedTokenStream")); | ||
__export(require("./CharStreams")); | ||
__export(require("./CodePointBuffer")); | ||
__export(require("./CodePointCharStream")); | ||
__export(require("./CommonToken")); | ||
__export(require("./CommonTokenFactory")); | ||
__export(require("./CommonTokenStream")); | ||
__export(require("./ConsoleErrorListener")); | ||
__export(require("./DefaultErrorStrategy")); | ||
__export(require("./Dependents")); | ||
__export(require("./DiagnosticErrorListener")); | ||
__export(require("./FailedPredicateException")); | ||
__export(require("./InputMismatchException")); | ||
__export(require("./InterpreterRuleContext")); | ||
__export(require("./IntStream")); | ||
__export(require("./Lexer")); | ||
__export(require("./LexerInterpreter")); | ||
__export(require("./LexerNoViableAltException")); | ||
__export(require("./ListTokenSource")); | ||
__export(require("./NoViableAltException")); | ||
__export(require("./Parser")); | ||
__export(require("./ParserInterpreter")); | ||
__export(require("./ParserRuleContext")); | ||
__export(require("./ProxyErrorListener")); | ||
__export(require("./ProxyParserErrorListener")); | ||
__export(require("./RecognitionException")); | ||
__export(require("./Recognizer")); | ||
__export(require("./RuleContext")); | ||
__export(require("./RuleContextWithAltNum")); | ||
__export(require("./RuleDependency")); | ||
__export(require("./RuleVersion")); | ||
__export(require("./Token")); | ||
__export(require("./TokenStreamRewriter")); | ||
__export(require("./VocabularyImpl")); | ||
__exportStar(require("./ANTLRInputStream"), exports); | ||
__exportStar(require("./BailErrorStrategy"), exports); | ||
__exportStar(require("./BufferedTokenStream"), exports); | ||
__exportStar(require("./CharStream"), exports); | ||
__exportStar(require("./CharStreams"), exports); | ||
__exportStar(require("./CodePointBuffer"), exports); | ||
__exportStar(require("./CodePointCharStream"), exports); | ||
__exportStar(require("./CommonToken"), exports); | ||
__exportStar(require("./CommonTokenFactory"), exports); | ||
__exportStar(require("./CommonTokenStream"), exports); | ||
__exportStar(require("./ConsoleErrorListener"), exports); | ||
__exportStar(require("./DefaultErrorStrategy"), exports); | ||
__exportStar(require("./Dependents"), exports); | ||
__exportStar(require("./DiagnosticErrorListener"), exports); | ||
__exportStar(require("./FailedPredicateException"), exports); | ||
__exportStar(require("./InputMismatchException"), exports); | ||
__exportStar(require("./InterpreterRuleContext"), exports); | ||
__exportStar(require("./IntStream"), exports); | ||
__exportStar(require("./Lexer"), exports); | ||
__exportStar(require("./LexerInterpreter"), exports); | ||
__exportStar(require("./LexerNoViableAltException"), exports); | ||
__exportStar(require("./ListTokenSource"), exports); | ||
__exportStar(require("./NoViableAltException"), exports); | ||
__exportStar(require("./Parser"), exports); | ||
__exportStar(require("./ParserErrorListener"), exports); | ||
__exportStar(require("./ParserInterpreter"), exports); | ||
__exportStar(require("./ParserRuleContext"), exports); | ||
__exportStar(require("./ProxyErrorListener"), exports); | ||
__exportStar(require("./ProxyParserErrorListener"), exports); | ||
__exportStar(require("./RecognitionException"), exports); | ||
__exportStar(require("./Recognizer"), exports); | ||
__exportStar(require("./RuleContext"), exports); | ||
__exportStar(require("./RuleContextWithAltNum"), exports); | ||
__exportStar(require("./RuleDependency"), exports); | ||
__exportStar(require("./RuleVersion"), exports); | ||
__exportStar(require("./Token"), exports); | ||
__exportStar(require("./TokenFactory"), exports); | ||
__exportStar(require("./TokenSource"), exports); | ||
__exportStar(require("./TokenStream"), exports); | ||
__exportStar(require("./TokenStreamRewriter"), exports); | ||
// export * from "./UnbufferedCharStream"; | ||
// export * from "./UnbufferedTokenStream"; | ||
__exportStar(require("./Vocabulary"), exports); | ||
__exportStar(require("./VocabularyImpl"), exports); | ||
__exportStar(require("./WritableToken"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -12,4 +12,4 @@ /*! | ||
export declare class InputMismatchException extends RecognitionException { | ||
constructor(recognizer: Parser); | ||
constructor(recognizer: Parser, state: number, context: ParserRuleContext); | ||
constructor(/*@NotNull*/ recognizer: Parser); | ||
constructor(/*@NotNull*/ recognizer: Parser, state: number, context: ParserRuleContext); | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InputMismatchException = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:51.5187682-07:00 | ||
@@ -18,0 +19,0 @@ const RecognitionException_1 = require("./RecognitionException"); |
@@ -32,3 +32,3 @@ /*! | ||
constructor(ruleIndex: number, parent: ParserRuleContext | undefined, invokingStateNumber: number); | ||
readonly ruleIndex: number; | ||
get ruleIndex(): number; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InterpreterRuleContext = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:51.5898546-07:00 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("./Decorators"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IntStream = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:51.6934376-07:00 | ||
@@ -9,0 +10,0 @@ var IntStream; |
@@ -23,4 +23,4 @@ /*! | ||
static readonly SKIP: number; | ||
static readonly DEFAULT_TOKEN_CHANNEL: number; | ||
static readonly HIDDEN: number; | ||
static get DEFAULT_TOKEN_CHANNEL(): number; | ||
static get HIDDEN(): number; | ||
static readonly MIN_CHAR_VALUE: number; | ||
@@ -85,6 +85,8 @@ static readonly MAX_CHAR_VALUE: number; | ||
popMode(): number; | ||
tokenFactory: TokenFactory; | ||
get tokenFactory(): TokenFactory; | ||
set tokenFactory(factory: TokenFactory); | ||
get inputStream(): CharStream; | ||
/** Set the char stream and reset the lexer */ | ||
inputStream: CharStream; | ||
readonly sourceName: string; | ||
set inputStream(input: CharStream); | ||
get sourceName(): string; | ||
/** The standard method called to automatically emit a token at the | ||
@@ -104,19 +106,25 @@ * outermost lexical rule. The token object should point into the | ||
emitEOF(): Token; | ||
line: number; | ||
charPositionInLine: number; | ||
get line(): number; | ||
set line(line: number); | ||
get charPositionInLine(): number; | ||
set charPositionInLine(charPositionInLine: number); | ||
/** What is the index of the current character of lookahead? */ | ||
readonly charIndex: number; | ||
get charIndex(): number; | ||
/** Return the text matched so far for the current token or any | ||
* text override. | ||
*/ | ||
get text(): string; | ||
/** Set the complete text of this token; it wipes any previous | ||
* changes to the text. | ||
*/ | ||
text: string; | ||
set text(text: string); | ||
/** Override if emitting multiple tokens. */ | ||
token: Token | undefined; | ||
type: number; | ||
channel: number; | ||
readonly abstract channelNames: string[]; | ||
readonly abstract modeNames: string[]; | ||
get token(): Token | undefined; | ||
set token(_token: Token | undefined); | ||
set type(ttype: number); | ||
get type(): number; | ||
set channel(channel: number); | ||
get channel(): number; | ||
abstract readonly channelNames: string[]; | ||
abstract readonly modeNames: string[]; | ||
/** Return a list of all Token objects in input char stream. | ||
@@ -123,0 +131,0 @@ * Forces load of all tokens. Does not include EOF token. |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Lexer = void 0; | ||
const CommonTokenFactory_1 = require("./CommonTokenFactory"); | ||
@@ -15,0 +16,0 @@ const IntegerStack_1 = require("./misc/IntegerStack"); |
@@ -17,8 +17,8 @@ /*! | ||
constructor(grammarFileName: string, vocabulary: Vocabulary, ruleNames: string[], channelNames: string[], modeNames: string[], atn: ATN, input: CharStream); | ||
readonly atn: ATN; | ||
readonly grammarFileName: string; | ||
readonly ruleNames: string[]; | ||
readonly channelNames: string[]; | ||
readonly modeNames: string[]; | ||
readonly vocabulary: Vocabulary; | ||
get atn(): ATN; | ||
get grammarFileName(): string; | ||
get ruleNames(): string[]; | ||
get channelNames(): string[]; | ||
get modeNames(): string[]; | ||
get vocabulary(): Vocabulary; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerInterpreter = void 0; | ||
const Lexer_1 = require("./Lexer"); | ||
@@ -18,0 +19,0 @@ const LexerATNSimulator_1 = require("./atn/LexerATNSimulator"); |
@@ -15,6 +15,6 @@ /*! | ||
constructor(lexer: Lexer | undefined, input: CharStream, startIndex: number, deadEndConfigs: ATNConfigSet | undefined); | ||
readonly startIndex: number; | ||
readonly deadEndConfigs: ATNConfigSet | undefined; | ||
readonly inputStream: CharStream; | ||
get startIndex(): number; | ||
get deadEndConfigs(): ATNConfigSet | undefined; | ||
get inputStream(): CharStream; | ||
toString(): string; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LexerNoViableAltException = void 0; | ||
const RecognitionException_1 = require("./RecognitionException"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("./Decorators"); |
@@ -61,3 +61,3 @@ /*! | ||
*/ | ||
readonly charPositionInLine: number; | ||
get charPositionInLine(): number; | ||
/** | ||
@@ -70,18 +70,19 @@ * {@inheritDoc} | ||
*/ | ||
readonly line: number; | ||
get line(): number; | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
readonly inputStream: CharStream | undefined; | ||
get inputStream(): CharStream | undefined; | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
readonly sourceName: string; | ||
get sourceName(): string; | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
set tokenFactory(factory: TokenFactory); | ||
/** | ||
* {@inheritDoc} | ||
*/ | ||
tokenFactory: TokenFactory; | ||
get tokenFactory(): TokenFactory; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ListTokenSource = void 0; | ||
const CommonTokenFactory_1 = require("./CommonTokenFactory"); | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("./Decorators"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.notNull = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:39.6568608-07:00 | ||
@@ -9,0 +10,0 @@ /** |
@@ -14,8 +14,8 @@ /*! | ||
get(key: K): V | undefined; | ||
readonly isEmpty: boolean; | ||
get isEmpty(): boolean; | ||
put(key: K, value: V): V | undefined; | ||
putIfAbsent(key: K, value: V): V | undefined; | ||
readonly size: number; | ||
get size(): number; | ||
hashCode(): number; | ||
equals(o: any): boolean; | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Array2DHashMap = void 0; | ||
const Array2DHashSet_1 = require("./Array2DHashSet"); | ||
@@ -9,0 +10,0 @@ class MapKeyEqualityComparator { |
@@ -7,3 +7,5 @@ /*! | ||
import { JavaCollection, JavaSet } from "./Stubs"; | ||
export declare class Array2DHashSet<T> implements JavaSet<T> { | ||
export declare class Array2DHashSet<T extends { | ||
toString(): string; | ||
}> implements JavaSet<T> { | ||
protected comparator: EqualityComparator<T>; | ||
@@ -29,4 +31,4 @@ protected buckets: Array<T[] | undefined>; | ||
add(t: T): boolean; | ||
readonly size: number; | ||
readonly isEmpty: boolean; | ||
get size(): number; | ||
get isEmpty(): boolean; | ||
contains(o: any): boolean; | ||
@@ -33,0 +35,0 @@ containsFast(obj: T): boolean; |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Array2DHashSet = void 0; | ||
// ConvertTo-TS run at 2016-10-03T02:09:41.7434086-07:00 | ||
@@ -18,0 +19,0 @@ const assert = require("assert"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ArrayEqualityComparator = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -15,0 +16,0 @@ const MurmurHash_1 = require("./MurmurHash"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Arrays = void 0; | ||
var Arrays; | ||
@@ -9,0 +10,0 @@ (function (Arrays) { |
@@ -100,3 +100,3 @@ /*! | ||
*/ | ||
readonly isEmpty: boolean; | ||
get isEmpty(): boolean; | ||
/** | ||
@@ -202,3 +202,3 @@ * Returns the "logical size" of this `BitSet`: the index of the highest set bit in the `BitSet` plus one. Returns | ||
set(fromIndex: number, toIndex: number, value: boolean): void; | ||
private _setBits(word, value, mask); | ||
private _setBits; | ||
/** | ||
@@ -208,3 +208,3 @@ * Returns the number of bits of space actually in use by this `BitSet` to represent bit values. The maximum element | ||
*/ | ||
readonly size: number; | ||
get size(): number; | ||
/** | ||
@@ -211,0 +211,0 @@ * Returns a new byte array containing all the bits in this bit set. |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.BitSet = void 0; | ||
const util = require("util"); | ||
@@ -9,0 +10,0 @@ const MurmurHash_1 = require("./MurmurHash"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isSupplementaryCodePoint = exports.isLowSurrogate = exports.isHighSurrogate = void 0; | ||
function isHighSurrogate(ch) { | ||
@@ -9,0 +10,0 @@ return ch >= 0xD800 && ch <= 0xDBFF; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DefaultEqualityComparator = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -15,0 +16,0 @@ const MurmurHash_1 = require("./MurmurHash"); |
@@ -6,30 +6,40 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./Array2DHashMap")); | ||
__export(require("./ArrayEqualityComparator")); | ||
__export(require("./Args")); | ||
__export(require("./Array2DHashSet")); | ||
__export(require("./Arrays")); | ||
__export(require("./BitSet")); | ||
__export(require("./Character")); | ||
__export(require("./DefaultEqualityComparator")); | ||
__exportStar(require("./Array2DHashMap"), exports); | ||
__exportStar(require("./ArrayEqualityComparator"), exports); | ||
__exportStar(require("./Args"), exports); | ||
__exportStar(require("./Array2DHashSet"), exports); | ||
__exportStar(require("./Arrays"), exports); | ||
__exportStar(require("./BitSet"), exports); | ||
__exportStar(require("./Character"), exports); | ||
__exportStar(require("./DefaultEqualityComparator"), exports); | ||
// export * from "./DoubleKeyMap"; | ||
__exportStar(require("./EqualityComparator"), exports); | ||
// export * from "./FlexibleHashMap"; | ||
__export(require("./IntegerList")); | ||
__export(require("./IntegerStack")); | ||
__export(require("./InterpreterDataReader")); | ||
__export(require("./Interval")); | ||
__export(require("./IntervalSet")); | ||
__exportStar(require("./IntegerList"), exports); | ||
__exportStar(require("./IntegerStack"), exports); | ||
__exportStar(require("./InterpreterDataReader"), exports); | ||
__exportStar(require("./Interval"), exports); | ||
__exportStar(require("./IntervalSet"), exports); | ||
__exportStar(require("./IntSet"), exports); | ||
// export * from "./LogManager"; | ||
__export(require("./MultiMap")); | ||
__export(require("./MurmurHash")); | ||
__export(require("./ObjectEqualityComparator")); | ||
__exportStar(require("./MultiMap"), exports); | ||
__exportStar(require("./MurmurHash"), exports); | ||
__exportStar(require("./ObjectEqualityComparator"), exports); | ||
// export * from "./OrderedHashSet"; | ||
__export(require("./ParseCancellationException")); | ||
__exportStar(require("./ParseCancellationException"), exports); | ||
// export * from "./RuleDependencyChecker"; | ||
// export * from "./RuleDependencyProcessor"; | ||
__export(require("./Utils")); | ||
__export(require("./UUID")); | ||
__exportStar(require("./Utils"), exports); | ||
__exportStar(require("./UUID"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -21,4 +21,4 @@ /*! | ||
removeRange(fromIndex: number, toIndex: number): void; | ||
readonly isEmpty: boolean; | ||
readonly size: number; | ||
get isEmpty(): boolean; | ||
get size(): number; | ||
trimToSize(): void; | ||
@@ -62,3 +62,3 @@ clear(): void; | ||
binarySearch(key: number, fromIndex?: number, toIndex?: number): number; | ||
private ensureCapacity(capacity); | ||
private ensureCapacity; | ||
/** Convert the list to a UTF-16 encoded char array. If all values are less | ||
@@ -70,3 +70,3 @@ * than the 0xFFFF 16-bit code point limit then this is just a char array | ||
toCharArray(): Uint16Array; | ||
private charArraySize(); | ||
private charArraySize; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IntegerList = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:40.5099429-07:00 | ||
@@ -15,0 +16,0 @@ const Arrays_1 = require("./Arrays"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IntegerStack = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:40.6647101-07:00 | ||
@@ -9,0 +10,0 @@ const IntegerList_1 = require("./IntegerList"); |
@@ -33,8 +33,8 @@ /*! | ||
class InterpreterData { | ||
atn: ATN; | ||
atn?: ATN; | ||
vocabulary: Vocabulary; | ||
ruleNames: string[]; | ||
channels: string[]; | ||
modes: string[]; | ||
channels?: string[]; | ||
modes?: string[]; | ||
} | ||
} |
@@ -7,6 +7,7 @@ "use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -16,2 +17,3 @@ }); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.InterpreterDataReader = void 0; | ||
const fs = require("fs"); | ||
@@ -77,3 +79,2 @@ const util = require("util"); | ||
let result = new InterpreterDataReader.InterpreterData(); | ||
result.ruleNames = []; | ||
let input = yield util.promisify(fs.readFile)(fileName); | ||
@@ -171,2 +172,6 @@ let lines = splitToLines(input); | ||
class InterpreterData { | ||
constructor() { | ||
this.vocabulary = VocabularyImpl_1.VocabularyImpl.EMPTY_VOCABULARY; | ||
this.ruleNames = []; | ||
} | ||
} | ||
@@ -173,0 +178,0 @@ InterpreterDataReader.InterpreterData = InterpreterData; |
@@ -11,3 +11,3 @@ /*! | ||
private static _INVALID; | ||
static readonly INVALID: Interval; | ||
static get INVALID(): Interval; | ||
private static readonly cache; | ||
@@ -29,3 +29,3 @@ /** | ||
*/ | ||
readonly length: number; | ||
get length(): number; | ||
equals(o: any): boolean; | ||
@@ -32,0 +32,0 @@ hashCode(): number; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Interval = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:40.7402214-07:00 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -22,5 +22,5 @@ /*! | ||
private static _COMPLETE_CHAR_SET; | ||
static readonly COMPLETE_CHAR_SET: IntervalSet; | ||
static get COMPLETE_CHAR_SET(): IntervalSet; | ||
private static _EMPTY_SET; | ||
static readonly EMPTY_SET: IntervalSet; | ||
static get EMPTY_SET(): IntervalSet; | ||
/** The list of sorted, disjoint intervals. */ | ||
@@ -63,3 +63,3 @@ private _intervals; | ||
/** {@inheritDoc} */ | ||
readonly isNil: boolean; | ||
get isNil(): boolean; | ||
/** | ||
@@ -71,3 +71,3 @@ * Returns the maximum value contained in the set if not isNil. | ||
*/ | ||
readonly maxElement: number; | ||
get maxElement(): number; | ||
/** | ||
@@ -79,5 +79,5 @@ * Returns the minimum value contained in the set if not isNil. | ||
*/ | ||
readonly minElement: number; | ||
get minElement(): number; | ||
/** Return a list of Interval objects. */ | ||
readonly intervals: Interval[]; | ||
get intervals(): Interval[]; | ||
hashCode(): number; | ||
@@ -93,3 +93,3 @@ /** Are two IntervalSets equal? Because all intervals are sorted | ||
protected elementName(vocabulary: Vocabulary, a: number): string; | ||
readonly size: number; | ||
get size(): number; | ||
toIntegerList(): IntegerList; | ||
@@ -99,4 +99,4 @@ toSet(): Set<number>; | ||
remove(el: number): void; | ||
readonly isReadonly: boolean; | ||
get isReadonly(): boolean; | ||
setReadonly(readonly: boolean): void; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IntervalSet = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:40.8683480-07:00 | ||
@@ -18,0 +19,0 @@ const ArrayEqualityComparator_1 = require("./ArrayEqualityComparator"); |
@@ -29,3 +29,3 @@ /*! | ||
*/ | ||
addAll(set: IntSet): IntSet; | ||
addAll(/*@Nullable*/ set: IntSet): IntSet; | ||
/** | ||
@@ -67,3 +67,3 @@ * Return a new {@link IntSet} object containing all elements that are | ||
*/ | ||
or(a: IntSet): IntSet; | ||
or(/*@Nullable*/ a: IntSet): IntSet; | ||
/** | ||
@@ -84,3 +84,3 @@ * Return a new {@link IntSet} object containing all elements that are | ||
*/ | ||
subtract(a: IntSet): IntSet; | ||
subtract(/*@Nullable*/ a: IntSet): IntSet; | ||
/** | ||
@@ -87,0 +87,0 @@ * Return the total number of elements represented by the current set. |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MultiMap = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:42.1346951-07:00 | ||
@@ -9,0 +10,0 @@ class MultiMap extends Map { |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MurmurHash = void 0; | ||
/** | ||
@@ -9,0 +10,0 @@ * |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ObjectEqualityComparator = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -15,0 +16,0 @@ /** |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseCancellationException = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:42.5447085-07:00 | ||
@@ -9,0 +10,0 @@ /** |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toCharArray = exports.toMap = exports.equals = exports.join = exports.escapeWhitespace = void 0; | ||
function escapeWhitespace(s, escapeSpaces) { | ||
@@ -9,0 +10,0 @@ return escapeSpaces ? s.replace(/ /, "\u00B7") : s |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.UUID = void 0; | ||
const MurmurHash_1 = require("./MurmurHash"); | ||
@@ -9,0 +10,0 @@ class UUID { |
@@ -26,6 +26,6 @@ /*! | ||
private _startToken; | ||
constructor(recognizer: Parser); | ||
constructor(/*@NotNull*/ recognizer: Parser); | ||
constructor(recognizer: Recognizer<Token, any>, input: TokenStream, startToken: Token, offendingToken: Token, deadEndConfigs: ATNConfigSet | undefined, ctx: ParserRuleContext); | ||
readonly startToken: Token; | ||
readonly deadEndConfigs: ATNConfigSet | undefined; | ||
get startToken(): Token; | ||
get deadEndConfigs(): ATNConfigSet | undefined; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.NoViableAltException = void 0; | ||
const Parser_1 = require("./Parser"); | ||
@@ -15,0 +16,0 @@ const RecognitionException_1 = require("./RecognitionException"); |
{ | ||
"name": "antlr4ts", | ||
"version": "0.5.0-alpha.3", | ||
"version": "0.5.0-alpha.4", | ||
"description": "ANTLR 4 runtime for JavaScript written in Typescript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -128,9 +128,2 @@ /*! | ||
/** | ||
* Gets whether or not a complete parse tree will be constructed while | ||
* parsing. This property is `true` for a newly constructed parser. | ||
* | ||
* @returns `true` if a complete parse tree will be constructed while | ||
* parsing, otherwise `false` | ||
*/ | ||
/** | ||
* Track the {@link ParserRuleContext} objects during the parse and hook | ||
@@ -150,3 +143,11 @@ * them up using the {@link ParserRuleContext#children} list so that it | ||
*/ | ||
buildParseTree: boolean; | ||
set buildParseTree(buildParseTrees: boolean); | ||
/** | ||
* Gets whether or not a complete parse tree will be constructed while | ||
* parsing. This property is `true` for a newly constructed parser. | ||
* | ||
* @returns `true` if a complete parse tree will be constructed while | ||
* parsing, otherwise `false` | ||
*/ | ||
get buildParseTree(): boolean; | ||
getParseListeners(): ParseTreeListener[]; | ||
@@ -216,4 +217,4 @@ /** | ||
*/ | ||
readonly numberOfSyntaxErrors: number; | ||
readonly tokenFactory: TokenFactory; | ||
get numberOfSyntaxErrors(): number; | ||
get tokenFactory(): TokenFactory; | ||
/** | ||
@@ -244,11 +245,13 @@ * The ATN with bypass alternatives is expensive to create so we create it | ||
compileParseTreePattern(pattern: string, patternRuleIndex: number, lexer?: Lexer): Promise<ParseTreePattern>; | ||
errorHandler: ANTLRErrorStrategy; | ||
get errorHandler(): ANTLRErrorStrategy; | ||
set errorHandler(handler: ANTLRErrorStrategy); | ||
get inputStream(): TokenStream; | ||
/** Set the token stream and reset the parser. */ | ||
inputStream: TokenStream; | ||
set inputStream(input: TokenStream); | ||
/** Match needs to return the current input symbol, which gets put | ||
* into the label for the associated token ref; e.g., x=ID. | ||
*/ | ||
readonly currentToken: Token; | ||
notifyErrorListeners(msg: string): void; | ||
notifyErrorListeners(msg: string, offendingToken: Token | null, e: RecognitionException | undefined): void; | ||
get currentToken(): Token; | ||
notifyErrorListeners(/*@NotNull*/ msg: string): void; | ||
notifyErrorListeners(/*@NotNull*/ msg: string, /*@NotNull*/ offendingToken: Token | null, e: RecognitionException | undefined): void; | ||
/** | ||
@@ -305,3 +308,3 @@ * Consume and return the [current symbol](`currentToken`). | ||
*/ | ||
readonly precedence: number; | ||
get precedence(): number; | ||
enterRecursionRule(localctx: ParserRuleContext, state: number, ruleIndex: number, precedence: number): void; | ||
@@ -314,3 +317,4 @@ /** Like {@link #enterRule} but for recursive rules. | ||
getInvokingContext(ruleIndex: number): ParserRuleContext | undefined; | ||
context: ParserRuleContext; | ||
get context(): ParserRuleContext; | ||
set context(ctx: ParserRuleContext); | ||
precpred(localctx: RuleContext, precedence: number): boolean; | ||
@@ -334,3 +338,3 @@ getErrorListenerDispatch(): ParserErrorListener; | ||
isExpectedToken(symbol: number): boolean; | ||
readonly isMatchedEOF: boolean; | ||
get isMatchedEOF(): boolean; | ||
/** | ||
@@ -347,3 +351,3 @@ * Computes the set of input symbols which could follow the current parser | ||
getRuleIndex(ruleName: string): number; | ||
readonly ruleContext: ParserRuleContext; | ||
get ruleContext(): ParserRuleContext; | ||
/** Return List<String> of the rule names in your parser instance | ||
@@ -361,4 +365,4 @@ * leading up to a call to the current rule. You could override if | ||
dumpDFA(): void; | ||
readonly sourceName: string; | ||
readonly parseInfo: Promise<ParseInfo | undefined>; | ||
get sourceName(): string; | ||
get parseInfo(): Promise<ParseInfo | undefined>; | ||
/** | ||
@@ -368,2 +372,6 @@ * @since 4.3 | ||
setProfile(profile: boolean): Promise<void>; | ||
/** During a parse is sometimes useful to listen in on the rule entry and exit | ||
* events as well as token matches. This is for quick and dirty debugging. | ||
*/ | ||
set isTrace(trace: boolean); | ||
/** | ||
@@ -373,6 +381,3 @@ * Gets whether a {@link TraceListener} is registered as a parse listener | ||
*/ | ||
/** During a parse is sometimes useful to listen in on the rule entry and exit | ||
* events as well as token matches. This is for quick and dirty debugging. | ||
*/ | ||
isTrace: boolean; | ||
get isTrace(): boolean; | ||
} |
@@ -16,6 +16,7 @@ "use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -25,2 +26,3 @@ }); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Parser = void 0; | ||
const Utils = require("./misc/Utils"); | ||
@@ -27,0 +29,0 @@ const ATNDeserializationOptions_1 = require("./atn/ATNDeserializationOptions"); |
@@ -72,13 +72,13 @@ /*! | ||
*/ | ||
constructor(old: ParserInterpreter); | ||
constructor(grammarFileName: string, vocabulary: Vocabulary, ruleNames: string[], atn: ATN, input: TokenStream); | ||
constructor(/*@NotNull*/ old: ParserInterpreter); | ||
constructor(grammarFileName: string, /*@NotNull*/ vocabulary: Vocabulary, ruleNames: string[], atn: ATN, input: TokenStream); | ||
reset(resetInput?: boolean): void; | ||
readonly atn: ATN; | ||
readonly vocabulary: Vocabulary; | ||
readonly ruleNames: string[]; | ||
readonly grammarFileName: string; | ||
get atn(): ATN; | ||
get vocabulary(): Vocabulary; | ||
get ruleNames(): string[]; | ||
get grammarFileName(): string; | ||
/** Begin parsing at startRuleIndex */ | ||
parse(startRuleIndex: number): ParserRuleContext; | ||
enterRecursionRule(localctx: ParserRuleContext, state: number, ruleIndex: number, precedence: number): void; | ||
protected readonly atnState: ATNState; | ||
protected get atnState(): ATNState; | ||
protected visitState(p: ATNState): void; | ||
@@ -136,3 +136,3 @@ /** Method visitDecisionState() is called when the interpreter reaches | ||
addDecisionOverride(decision: number, tokenIndex: number, forcedAlt: number): void; | ||
readonly overrideDecisionRoot: InterpreterRuleContext | undefined; | ||
get overrideDecisionRoot(): InterpreterRuleContext | undefined; | ||
/** Rely on the error handler for this parser but, if no tokens are consumed | ||
@@ -152,3 +152,3 @@ * to recover, add an error node. Otherwise, nothing is seen in the parse | ||
*/ | ||
readonly rootContext: InterpreterRuleContext; | ||
get rootContext(): InterpreterRuleContext; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParserInterpreter = void 0; | ||
const ATNState_1 = require("./atn/ATNState"); | ||
@@ -18,0 +19,0 @@ const ATNStateType_1 = require("./atn/ATNStateType"); |
@@ -132,3 +132,3 @@ /*! | ||
removeLastChild(): void; | ||
readonly parent: ParserRuleContext | undefined; | ||
get parent(): ParserRuleContext | undefined; | ||
getChild(i: number): ParseTree; | ||
@@ -144,3 +144,3 @@ getChild<T extends ParseTree>(i: number, ctxType: { | ||
getTokens(ttype: number): TerminalNode[]; | ||
readonly ruleContext: this; | ||
get ruleContext(): this; | ||
getRuleContext<T extends ParserRuleContext>(i: number, ctxType: { | ||
@@ -155,4 +155,4 @@ new (...args: any[]): T; | ||
}): T[]; | ||
readonly childCount: number; | ||
readonly sourceInterval: Interval; | ||
get childCount(): number; | ||
get sourceInterval(): Interval; | ||
/** | ||
@@ -163,3 +163,3 @@ * Get the initial token in this context. | ||
*/ | ||
readonly start: Token; | ||
get start(): Token; | ||
/** | ||
@@ -170,5 +170,5 @@ * Get the final token in this context. | ||
*/ | ||
readonly stop: Token | undefined; | ||
get stop(): Token | undefined; | ||
/** Used for rule context info debugging during parse-time, not so much for ATN debugging */ | ||
toInfoString(recognizer: Parser): string; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParserRuleContext = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:56.6285494-07:00 | ||
@@ -292,3 +293,2 @@ const ErrorNode_1 = require("./tree/ErrorNode"); | ||
Decorators_1.Override | ||
/** Override to make type more specific */ | ||
], ParserRuleContext.prototype, "parent", null); | ||
@@ -295,0 +295,0 @@ __decorate([ |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ProxyErrorListener = void 0; | ||
const Decorators_1 = require("./Decorators"); | ||
@@ -18,0 +19,0 @@ /** |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ProxyParserErrorListener = void 0; | ||
const ProxyErrorListener_1 = require("./ProxyErrorListener"); | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("./Decorators"); |
@@ -43,3 +43,3 @@ /*! | ||
*/ | ||
readonly offendingState: number; | ||
get offendingState(): number; | ||
protected setOffendingState(offendingState: number): void; | ||
@@ -56,3 +56,3 @@ /** | ||
*/ | ||
readonly expectedTokens: IntervalSet | undefined; | ||
get expectedTokens(): IntervalSet | undefined; | ||
/** | ||
@@ -66,3 +66,3 @@ * Gets the {@link RuleContext} at the time this exception was thrown. | ||
*/ | ||
readonly context: RuleContext | undefined; | ||
get context(): RuleContext | undefined; | ||
/** | ||
@@ -78,3 +78,3 @@ * Gets the input stream which is the symbol source for the recognizer where | ||
*/ | ||
readonly inputStream: IntStream | undefined; | ||
get inputStream(): IntStream | undefined; | ||
getOffendingToken(recognizer?: Recognizer<Token, any>): Token | undefined; | ||
@@ -90,3 +90,3 @@ protected setOffendingToken<TSymbol extends Token>(recognizer: Recognizer<TSymbol, any>, offendingToken?: TSymbol): void; | ||
*/ | ||
readonly recognizer: Recognizer<any, any> | undefined; | ||
get recognizer(): Recognizer<any, any> | undefined; | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RecognitionException = void 0; | ||
/** The root of the ANTLR exception hierarchy. In general, ANTLR tracks just | ||
@@ -9,0 +10,0 @@ * 3 kinds of errors: prediction errors, failed predicate errors, and |
@@ -20,3 +20,3 @@ /*! | ||
private _stateNumber; | ||
readonly abstract ruleNames: string[]; | ||
abstract readonly ruleNames: string[]; | ||
/** | ||
@@ -28,3 +28,3 @@ * Get the vocabulary used by the recognizer. | ||
*/ | ||
readonly abstract vocabulary: Vocabulary; | ||
abstract readonly vocabulary: Vocabulary; | ||
/** | ||
@@ -50,7 +50,7 @@ * Get a map from token names to token types. | ||
*/ | ||
readonly serializedATN: string; | ||
get serializedATN(): string; | ||
/** For debugging and other purposes, might want the grammar name. | ||
* Have ANTLR generate an implementation for this method. | ||
*/ | ||
readonly abstract grammarFileName: string; | ||
abstract readonly grammarFileName: string; | ||
/** | ||
@@ -61,3 +61,3 @@ * Get the {@link ATN} used by the recognizer for prediction. | ||
*/ | ||
readonly atn: ATN; | ||
get atn(): ATN; | ||
/** | ||
@@ -68,2 +68,3 @@ * Get the ATN interpreter used by the recognizer for prediction. | ||
*/ | ||
get interpreter(): ATNInterpreter; | ||
/** | ||
@@ -75,3 +76,3 @@ * Set the ATN interpreter used by the recognizer for prediction. | ||
*/ | ||
interpreter: ATNInterpreter; | ||
set interpreter(interpreter: ATNInterpreter); | ||
/** If profiling during the parse/lex, this will return DecisionInfo records | ||
@@ -82,3 +83,3 @@ * for each decision in recognizer in a ParseInfo object. | ||
*/ | ||
readonly parseInfo: Promise<ParseInfo | undefined>; | ||
get parseInfo(): Promise<ParseInfo | undefined>; | ||
/** What is the error header, normally line/character position information? */ | ||
@@ -97,2 +98,3 @@ getErrorHeader(e: RecognitionException): string; | ||
action(_localctx: RuleContext | undefined, ruleIndex: number, actionIndex: number): void; | ||
get state(): number; | ||
/** Indicate that the recognizer has changed internal state that is | ||
@@ -105,4 +107,4 @@ * consistent with the ATN state passed in. This way we always know | ||
*/ | ||
state: number; | ||
readonly abstract inputStream: IntStream | undefined; | ||
set state(atnState: number); | ||
abstract readonly inputStream: IntStream | undefined; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Recognizer = void 0; | ||
const ConsoleErrorListener_1 = require("./ConsoleErrorListener"); | ||
@@ -18,0 +19,0 @@ const ProxyErrorListener_1 = require("./ProxyErrorListener"); |
@@ -71,9 +71,9 @@ /*! | ||
*/ | ||
readonly isEmpty: boolean; | ||
readonly sourceInterval: Interval; | ||
readonly ruleContext: RuleContext; | ||
readonly parent: RuleContext | undefined; | ||
get isEmpty(): boolean; | ||
get sourceInterval(): Interval; | ||
get ruleContext(): RuleContext; | ||
get parent(): RuleContext | undefined; | ||
/** @since 4.7. {@see ParseTree#setParent} comment */ | ||
setParent(parent: RuleContext): void; | ||
readonly payload: RuleContext; | ||
get payload(): RuleContext; | ||
/** Return the combined text of all child nodes. This method only considers | ||
@@ -86,4 +86,4 @@ * tokens which have been added to the parse tree. | ||
*/ | ||
readonly text: string; | ||
readonly ruleIndex: number; | ||
get text(): string; | ||
get ruleIndex(): number; | ||
/** For rule associated with this parse tree internal node, return | ||
@@ -98,2 +98,3 @@ * the outer alternative number used to match the input. Default | ||
*/ | ||
get altNumber(): number; | ||
/** Set the outer alternative number for this context node. Default | ||
@@ -107,5 +108,5 @@ * implementation does nothing to avoid backing field overhead for | ||
*/ | ||
altNumber: number; | ||
set altNumber(altNumber: number); | ||
getChild(i: number): ParseTree; | ||
readonly childCount: number; | ||
get childCount(): number; | ||
accept<T>(visitor: ParseTreeVisitor<T>): T; | ||
@@ -112,0 +113,0 @@ /** Print out a whole tree, not just a node, in LISP format |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleContext = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:57.3490837-07:00 | ||
@@ -15,0 +16,0 @@ const ATN_1 = require("./atn/ATN"); |
@@ -20,3 +20,4 @@ /*! | ||
constructor(parent: ParserRuleContext | undefined, invokingStateNumber: number); | ||
altNumber: number; | ||
get altNumber(): number; | ||
set altNumber(altNum: number); | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleContextWithAltNum = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:57.4741196-07:00 | ||
@@ -15,0 +16,0 @@ const ATN_1 = require("./atn/ATN"); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleDependency = void 0; | ||
/** | ||
@@ -9,0 +10,0 @@ * Declares a dependency upon a grammar rule, along with a set of zero or more dependent rules. |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleVersion = void 0; | ||
/** | ||
@@ -9,0 +10,0 @@ * |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Token = void 0; | ||
const IntStream_1 = require("./IntStream"); | ||
@@ -9,0 +10,0 @@ var Token; |
@@ -81,3 +81,3 @@ /*! | ||
*/ | ||
getText(interval: Interval): string; | ||
getText(/*@NotNull*/ interval: Interval): string; | ||
/** | ||
@@ -115,3 +115,3 @@ * Return the text of all tokens in the stream. This method behaves like the | ||
*/ | ||
getText(ctx: RuleContext): string; | ||
getText(/*@NotNull*/ ctx: RuleContext): string; | ||
/** | ||
@@ -118,0 +118,0 @@ * Return the text of all tokens in this stream between `start` and |
@@ -124,3 +124,3 @@ /*! | ||
protected getProgram(name: string): RewriteOperation[]; | ||
private initializeProgram(name); | ||
private initializeProgram; | ||
/** Return the text from the original tokens altered per the | ||
@@ -204,10 +204,10 @@ * instructions given to this rewriter. | ||
export declare class RewriteOperation { | ||
protected tokens: TokenStream; | ||
protected readonly tokens: TokenStream; | ||
/** What index into rewrites List are we? */ | ||
instructionIndex: number; | ||
readonly instructionIndex: number; | ||
/** Token buffer index. */ | ||
index: number; | ||
text: {}; | ||
constructor(tokens: TokenStream, index: number); | ||
constructor(tokens: TokenStream, index: number, text: {}); | ||
constructor(tokens: TokenStream, index: number, instructionIndex: number); | ||
constructor(tokens: TokenStream, index: number, instructionIndex: number, text: {}); | ||
/** Execute the rewrite operation by possibly adding to the buffer. | ||
@@ -214,0 +214,0 @@ * Return the index of the next token to operate on. |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RewriteOperation = exports.TokenStreamRewriter = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:58.1768850-07:00 | ||
@@ -114,5 +115,4 @@ const Interval_1 = require("./misc/Interval"); | ||
// to insert after, just insert before next index (even if past end) | ||
let op = new InsertAfterOp(this.tokens, index, text); | ||
let rewrites = this.getProgram(programName); | ||
op.instructionIndex = rewrites.length; | ||
let op = new InsertAfterOp(this.tokens, index, rewrites.length, text); | ||
rewrites.push(op); | ||
@@ -128,5 +128,4 @@ } | ||
} | ||
let op = new InsertBeforeOp(this.tokens, index, text); | ||
let rewrites = this.getProgram(programName); | ||
op.instructionIndex = rewrites.length; | ||
let op = new InsertBeforeOp(this.tokens, index, rewrites.length, text); | ||
rewrites.push(op); | ||
@@ -152,5 +151,4 @@ } | ||
} | ||
let op = new ReplaceOp(this.tokens, from, to, text); | ||
let rewrites = this.getProgram(programName); | ||
op.instructionIndex = rewrites.length; | ||
let op = new ReplaceOp(this.tokens, from, to, rewrites.length, text); | ||
rewrites.push(op); | ||
@@ -430,10 +428,11 @@ } | ||
} | ||
exports.TokenStreamRewriter = TokenStreamRewriter; | ||
TokenStreamRewriter.DEFAULT_PROGRAM_NAME = "default"; | ||
TokenStreamRewriter.PROGRAM_INIT_SIZE = 100; | ||
TokenStreamRewriter.MIN_TOKEN_INDEX = 0; | ||
exports.TokenStreamRewriter = TokenStreamRewriter; | ||
// Define the rewrite operation hierarchy | ||
class RewriteOperation { | ||
constructor(tokens, index, text) { | ||
constructor(tokens, index, instructionIndex, text) { | ||
this.tokens = tokens; | ||
this.instructionIndex = instructionIndex; | ||
this.index = index; | ||
@@ -461,4 +460,4 @@ this.text = text === undefined ? "" : text; | ||
class InsertBeforeOp extends RewriteOperation { | ||
constructor(tokens, index, text) { | ||
super(tokens, index, text); | ||
constructor(tokens, index, instructionIndex, text) { | ||
super(tokens, index, instructionIndex, text); | ||
} | ||
@@ -481,4 +480,4 @@ execute(buf) { | ||
class InsertAfterOp extends InsertBeforeOp { | ||
constructor(tokens, index, text) { | ||
super(tokens, index + 1, text); // insert after is insert before index+1 | ||
constructor(tokens, index, instructionIndex, text) { | ||
super(tokens, index + 1, instructionIndex, text); // insert after is insert before index+1 | ||
} | ||
@@ -490,4 +489,4 @@ } | ||
class ReplaceOp extends RewriteOperation { | ||
constructor(tokens, from, to, text) { | ||
super(tokens, from, text); | ||
constructor(tokens, from, to, instructionIndex, text) { | ||
super(tokens, from, instructionIndex, text); | ||
this.lastIndex = to; | ||
@@ -494,0 +493,0 @@ } |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AbstractParseTreeVisitor = void 0; | ||
const Decorators_1 = require("../Decorators"); | ||
@@ -18,0 +19,0 @@ class AbstractParseTreeVisitor { |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ErrorNode = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:47.4646355-07:00 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../Decorators"); |
@@ -6,13 +6,25 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./AbstractParseTreeVisitor")); | ||
__export(require("./ErrorNode")); | ||
__export(require("./ParseTreeProperty")); | ||
__export(require("./ParseTreeWalker")); | ||
__export(require("./RuleNode")); | ||
__export(require("./TerminalNode")); | ||
__export(require("./Trees")); | ||
__exportStar(require("./AbstractParseTreeVisitor"), exports); | ||
__exportStar(require("./ErrorNode"), exports); | ||
__exportStar(require("./ParseTree"), exports); | ||
__exportStar(require("./ParseTreeListener"), exports); | ||
__exportStar(require("./ParseTreeProperty"), exports); | ||
__exportStar(require("./ParseTreeVisitor"), exports); | ||
__exportStar(require("./ParseTreeWalker"), exports); | ||
__exportStar(require("./RuleNode"), exports); | ||
__exportStar(require("./SyntaxTree"), exports); | ||
__exportStar(require("./TerminalNode"), exports); | ||
__exportStar(require("./Tree"), exports); | ||
__exportStar(require("./Trees"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -22,6 +22,6 @@ /*! | ||
export interface ParseTreeListener { | ||
visitTerminal?: (node: TerminalNode) => void; | ||
visitErrorNode?: (node: ErrorNode) => void; | ||
enterEveryRule?: (ctx: ParserRuleContext) => void; | ||
exitEveryRule?: (ctx: ParserRuleContext) => void; | ||
visitTerminal?: (/*@NotNull*/ node: TerminalNode) => void; | ||
visitErrorNode?: (/*@NotNull*/ node: ErrorNode) => void; | ||
enterEveryRule?: (/*@NotNull*/ ctx: ParserRuleContext) => void; | ||
exitEveryRule?: (/*@NotNull*/ ctx: ParserRuleContext) => void; | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseTreeProperty = void 0; | ||
/** | ||
@@ -9,0 +10,0 @@ * Associate a property with a parse tree node. Useful with parse tree listeners |
@@ -25,3 +25,3 @@ /*! | ||
*/ | ||
visit(tree: ParseTree): Result; | ||
visit(/*@NotNull*/ tree: ParseTree): Result; | ||
/** | ||
@@ -34,3 +34,3 @@ * Visit the children of a node, and return a user-defined result | ||
*/ | ||
visitChildren(node: RuleNode): Result; | ||
visitChildren(/*@NotNull*/ node: RuleNode): Result; | ||
/** | ||
@@ -42,3 +42,3 @@ * Visit a terminal node, and return a user-defined result of the operation. | ||
*/ | ||
visitTerminal(node: TerminalNode): Result; | ||
visitTerminal(/*@NotNull*/ node: TerminalNode): Result; | ||
/** | ||
@@ -50,3 +50,3 @@ * Visit an error node, and return a user-defined result of the operation. | ||
*/ | ||
visitErrorNode(node: ErrorNode): Result; | ||
visitErrorNode(/*@NotNull*/ node: ErrorNode): Result; | ||
} |
@@ -9,10 +9,24 @@ /*! | ||
export declare class ParseTreeWalker { | ||
/** | ||
* Performs a walk on the given parse tree starting at the root and going down recursively | ||
* with depth-first search. On each node, {@link ParseTreeWalker#enterRule} is called before | ||
* recursively walking down into child nodes, then | ||
* {@link ParseTreeWalker#exitRule} is called after the recursive call to wind up. | ||
* @param listener The listener used by the walker to process grammar rules | ||
* @param t The parse tree to be walked on | ||
*/ | ||
walk<T extends ParseTreeListener>(listener: T, t: ParseTree): void; | ||
/** | ||
* The discovery of a rule node, involves sending two events: the generic | ||
* {@link ParseTreeListener#enterEveryRule} and a | ||
* {@link RuleContext}-specific event. First we trigger the generic and then | ||
* the rule specific. We to them in reverse order upon finishing the node. | ||
* Enters a grammar rule by first triggering the generic event {@link ParseTreeListener#enterEveryRule} | ||
* then by triggering the event specific to the given parse tree node | ||
* @param listener The listener responding to the trigger events | ||
* @param r The grammar rule containing the rule context | ||
*/ | ||
protected enterRule(listener: ParseTreeListener, r: RuleNode): void; | ||
/** | ||
* Exits a grammar rule by first triggering the event specific to the given parse tree node | ||
* then by triggering the generic event {@link ParseTreeListener#exitEveryRule} | ||
* @param listener The listener responding to the trigger events | ||
* @param r The grammar rule containing the rule context | ||
*/ | ||
protected exitRule(listener: ParseTreeListener, r: RuleNode): void; | ||
@@ -19,0 +33,0 @@ } |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseTreeWalker = void 0; | ||
const ErrorNode_1 = require("./ErrorNode"); | ||
@@ -12,2 +13,10 @@ const TerminalNode_1 = require("./TerminalNode"); | ||
class ParseTreeWalker { | ||
/** | ||
* Performs a walk on the given parse tree starting at the root and going down recursively | ||
* with depth-first search. On each node, {@link ParseTreeWalker#enterRule} is called before | ||
* recursively walking down into child nodes, then | ||
* {@link ParseTreeWalker#exitRule} is called after the recursive call to wind up. | ||
* @param listener The listener used by the walker to process grammar rules | ||
* @param t The parse tree to be walked on | ||
*/ | ||
walk(listener, t) { | ||
@@ -67,6 +76,6 @@ let nodeStack = []; | ||
/** | ||
* The discovery of a rule node, involves sending two events: the generic | ||
* {@link ParseTreeListener#enterEveryRule} and a | ||
* {@link RuleContext}-specific event. First we trigger the generic and then | ||
* the rule specific. We to them in reverse order upon finishing the node. | ||
* Enters a grammar rule by first triggering the generic event {@link ParseTreeListener#enterEveryRule} | ||
* then by triggering the event specific to the given parse tree node | ||
* @param listener The listener responding to the trigger events | ||
* @param r The grammar rule containing the rule context | ||
*/ | ||
@@ -80,2 +89,8 @@ enterRule(listener, r) { | ||
} | ||
/** | ||
* Exits a grammar rule by first triggering the event specific to the given parse tree node | ||
* then by triggering the generic event {@link ParseTreeListener#exitEveryRule} | ||
* @param listener The listener responding to the trigger events | ||
* @param r The grammar rule containing the rule context | ||
*/ | ||
exitRule(listener, r) { | ||
@@ -82,0 +97,0 @@ let ctx = r.ruleContext; |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Chunk = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:45.2799060-07:00 | ||
@@ -9,0 +10,0 @@ /** |
@@ -6,11 +6,18 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./ParseTreeMatch")); | ||
__export(require("./ParseTreePattern")); | ||
__export(require("./ParseTreePatternMatcher")); | ||
__export(require("./RuleTagToken")); | ||
__export(require("./TokenTagToken")); | ||
__exportStar(require("./ParseTreeMatch"), exports); | ||
__exportStar(require("./ParseTreePattern"), exports); | ||
__exportStar(require("./ParseTreePatternMatcher"), exports); | ||
__exportStar(require("./RuleTagToken"), exports); | ||
__exportStar(require("./TokenTagToken"), exports); | ||
// The following are "package-private modules" - exported individually but don't need to be part of the public API | ||
@@ -17,0 +24,0 @@ // exposed by this file. |
@@ -93,3 +93,3 @@ /*! | ||
*/ | ||
readonly labels: MultiMap<string, ParseTree>; | ||
get labels(): MultiMap<string, ParseTree>; | ||
/** | ||
@@ -101,3 +101,3 @@ * Get the node at which we first detected a mismatch. | ||
*/ | ||
readonly mismatchedNode: ParseTree | undefined; | ||
get mismatchedNode(): ParseTree | undefined; | ||
/** | ||
@@ -109,3 +109,3 @@ * Gets a value indicating whether the match operation succeeded. | ||
*/ | ||
readonly succeeded: boolean; | ||
get succeeded(): boolean; | ||
/** | ||
@@ -116,3 +116,3 @@ * Get the tree pattern we are matching against. | ||
*/ | ||
readonly pattern: ParseTreePattern; | ||
get pattern(): ParseTreePattern; | ||
/** | ||
@@ -123,3 +123,3 @@ * Get the parse tree we are trying to match to a pattern. | ||
*/ | ||
readonly tree: ParseTree; | ||
get tree(): ParseTree; | ||
/** | ||
@@ -126,0 +126,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseTreeMatch = void 0; | ||
const Decorators_1 = require("../../Decorators"); | ||
@@ -18,0 +19,0 @@ /** |
@@ -75,3 +75,3 @@ /*! | ||
*/ | ||
readonly matcher: ParseTreePatternMatcher; | ||
get matcher(): ParseTreePatternMatcher; | ||
/** | ||
@@ -82,3 +82,3 @@ * Get the tree pattern in concrete syntax form. | ||
*/ | ||
readonly pattern: string; | ||
get pattern(): string; | ||
/** | ||
@@ -91,3 +91,3 @@ * Get the parser rule which serves as the outermost rule for the tree | ||
*/ | ||
readonly patternRuleIndex: number; | ||
get patternRuleIndex(): number; | ||
/** | ||
@@ -100,3 +100,3 @@ * Get the tree pattern as a {@link ParseTree}. The rule and token tags from | ||
*/ | ||
readonly patternTree: ParseTree; | ||
get patternTree(): ParseTree; | ||
} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseTreePattern = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -18,0 +19,0 @@ const Decorators_1 = require("../../Decorators"); |
@@ -136,3 +136,3 @@ /*! | ||
*/ | ||
readonly lexer: Lexer; | ||
get lexer(): Lexer; | ||
/** | ||
@@ -142,3 +142,3 @@ * Used to collect to the grammar file name, token names, rule names for | ||
*/ | ||
readonly parser: Parser; | ||
get parser(): Parser; | ||
/** | ||
@@ -145,0 +145,0 @@ * Recursively walk `tree` against `patternTree`, filling |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ParseTreePatternMatcher = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -18,0 +19,0 @@ const BailErrorStrategy_1 = require("../../BailErrorStrategy"); |
@@ -45,3 +45,3 @@ /*! | ||
*/ | ||
readonly ruleName: string; | ||
get ruleName(): string; | ||
/** | ||
@@ -53,3 +53,3 @@ * Gets the label associated with the rule tag. | ||
*/ | ||
readonly label: string | undefined; | ||
get label(): string | undefined; | ||
/** | ||
@@ -60,3 +60,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly channel: number; | ||
get channel(): number; | ||
/** | ||
@@ -68,3 +68,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly text: string; | ||
get text(): string; | ||
/** | ||
@@ -76,3 +76,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly type: number; | ||
get type(): number; | ||
/** | ||
@@ -83,3 +83,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly line: number; | ||
get line(): number; | ||
/** | ||
@@ -90,3 +90,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly charPositionInLine: number; | ||
get charPositionInLine(): number; | ||
/** | ||
@@ -97,3 +97,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly tokenIndex: number; | ||
get tokenIndex(): number; | ||
/** | ||
@@ -104,3 +104,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly startIndex: number; | ||
get startIndex(): number; | ||
/** | ||
@@ -111,3 +111,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly stopIndex: number; | ||
get stopIndex(): number; | ||
/** | ||
@@ -118,3 +118,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly tokenSource: TokenSource | undefined; | ||
get tokenSource(): TokenSource | undefined; | ||
/** | ||
@@ -125,3 +125,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly inputStream: CharStream | undefined; | ||
get inputStream(): CharStream | undefined; | ||
/** | ||
@@ -128,0 +128,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleTagToken = void 0; | ||
const Decorators_1 = require("../../Decorators"); | ||
@@ -18,0 +19,0 @@ const Token_1 = require("../../Token"); |
@@ -45,3 +45,3 @@ /*! | ||
*/ | ||
readonly tag: string; | ||
get tag(): string; | ||
/** | ||
@@ -53,3 +53,3 @@ * Get the label, if any, assigned to this chunk. | ||
*/ | ||
readonly label: string | undefined; | ||
get label(): string | undefined; | ||
/** | ||
@@ -56,0 +56,0 @@ * This method returns a text representation of the tag chunk. Labeled tags |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TagChunk = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:46.1670669-07:00 | ||
@@ -15,0 +16,0 @@ const Chunk_1 = require("./Chunk"); |
@@ -27,3 +27,3 @@ /*! | ||
*/ | ||
readonly text: string; | ||
get text(): string; | ||
/** | ||
@@ -30,0 +30,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TextChunk = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:46.2521448-07:00 | ||
@@ -18,0 +19,0 @@ const Chunk_1 = require("./Chunk"); |
@@ -34,3 +34,3 @@ /*! | ||
*/ | ||
readonly tokenName: string; | ||
get tokenName(): string; | ||
/** | ||
@@ -42,3 +42,3 @@ * Gets the label associated with the rule tag. | ||
*/ | ||
readonly label: string | undefined; | ||
get label(): string | undefined; | ||
/** | ||
@@ -50,3 +50,3 @@ * {@inheritDoc} | ||
*/ | ||
readonly text: string; | ||
get text(): string; | ||
/** | ||
@@ -53,0 +53,0 @@ * {@inheritDoc} |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TokenTagToken = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:46.3281988-07:00 | ||
@@ -18,0 +19,0 @@ const CommonToken_1 = require("../../CommonToken"); |
@@ -11,12 +11,12 @@ /*! | ||
export declare abstract class RuleNode implements ParseTree { | ||
readonly abstract ruleContext: RuleContext; | ||
readonly abstract parent: RuleNode | undefined; | ||
abstract readonly ruleContext: RuleContext; | ||
abstract readonly parent: RuleNode | undefined; | ||
abstract setParent(parent: RuleContext): void; | ||
abstract getChild(i: number): ParseTree; | ||
abstract accept<T>(visitor: ParseTreeVisitor<T>): T; | ||
readonly abstract text: string; | ||
abstract readonly text: string; | ||
abstract toStringTree(parser?: Parser | undefined): string; | ||
readonly abstract sourceInterval: Interval; | ||
readonly abstract payload: any; | ||
readonly abstract childCount: number; | ||
abstract readonly sourceInterval: Interval; | ||
abstract readonly payload: any; | ||
abstract readonly childCount: number; | ||
} |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleNode = void 0; | ||
class RuleNode { | ||
@@ -9,0 +10,0 @@ } |
@@ -17,12 +17,12 @@ /*! | ||
getChild(i: number): never; | ||
readonly symbol: Token; | ||
readonly parent: RuleNode | undefined; | ||
get symbol(): Token; | ||
get parent(): RuleNode | undefined; | ||
setParent(parent: RuleContext): void; | ||
readonly payload: Token; | ||
readonly sourceInterval: Interval; | ||
readonly childCount: number; | ||
get payload(): Token; | ||
get sourceInterval(): Interval; | ||
get childCount(): number; | ||
accept<T>(visitor: ParseTreeVisitor<T>): T; | ||
readonly text: string; | ||
get text(): string; | ||
toStringTree(parser?: Parser): string; | ||
toString(): string; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TerminalNode = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:48.1433686-07:00 | ||
@@ -15,0 +16,0 @@ const Interval_1 = require("../misc/Interval"); |
@@ -14,3 +14,3 @@ /*! | ||
/** | ||
* This method returns whatever object represents the data at this note. For | ||
* This method returns whatever object represents the data at this node. For | ||
* example, for parse trees, the payload can be a {@link Token} representing | ||
@@ -17,0 +17,0 @@ * a leaf node or a {@link RuleContext} object representing a rule |
@@ -15,3 +15,3 @@ /*! | ||
*/ | ||
static toStringTree(t: Tree): string; | ||
static toStringTree(/*@NotNull*/ t: Tree): string; | ||
/** Print out a whole tree in LISP form. {@link #getNodeText} is used on the | ||
@@ -21,10 +21,10 @@ * node payloads to get the text for the nodes. Detect | ||
*/ | ||
static toStringTree(t: Tree, recog: Parser | undefined): string; | ||
static toStringTree(/*@NotNull*/ t: Tree, recog: Parser | undefined): string; | ||
/** Print out a whole tree in LISP form. {@link #getNodeText} is used on the | ||
* node payloads to get the text for the nodes. | ||
*/ | ||
static toStringTree(t: Tree, ruleNames: string[] | undefined): string; | ||
static toStringTree(t: Tree, arg2?: Parser | string[]): string; | ||
static getNodeText(t: Tree, recog: Parser | undefined): string; | ||
static getNodeText(t: Tree, ruleNames: string[] | undefined): string; | ||
static toStringTree(/*@NotNull*/ t: Tree, /*@Nullable*/ ruleNames: string[] | undefined): string; | ||
static toStringTree(/*@NotNull*/ t: Tree, arg2?: Parser | string[]): string; | ||
static getNodeText(/*@NotNull*/ t: Tree, recog: Parser | undefined): string; | ||
static getNodeText(/*@NotNull*/ t: Tree, ruleNames: string[] | undefined): string; | ||
/** Return ordered list of all children of this node */ | ||
@@ -60,3 +60,4 @@ static getChildren(t: ParseTree): ParseTree[]; | ||
*/ | ||
static getRootOfSubtreeEnclosingRegion(t: ParseTree, startTokenIndex: number, stopTokenIndex: number): ParserRuleContext | undefined; | ||
static getRootOfSubtreeEnclosingRegion(t: ParseTree, startTokenIndex: number, // inclusive | ||
stopTokenIndex: number): ParserRuleContext | undefined; | ||
/** Replace any subtree siblings of root that are completely to left | ||
@@ -63,0 +64,0 @@ * or right of lookahead range with a CommonToken(Token.INVALID_TYPE,"...") |
@@ -16,2 +16,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Trees = void 0; | ||
const ATN_1 = require("../atn/ATN"); | ||
@@ -18,0 +19,0 @@ const CommonToken_1 = require("../CommonToken"); |
@@ -6,16 +6,23 @@ "use strict"; | ||
*/ | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./XPath")); | ||
__export(require("./XPathElement")); | ||
__export(require("./XPathLexer")); | ||
__export(require("./XPathLexerErrorListener")); | ||
__export(require("./XPathRuleAnywhereElement")); | ||
__export(require("./XPathRuleElement")); | ||
__export(require("./XPathTokenAnywhereElement")); | ||
__export(require("./XPathTokenElement")); | ||
__export(require("./XPathWildcardAnywhereElement")); | ||
__export(require("./XPathWildcardElement")); | ||
__exportStar(require("./XPath"), exports); | ||
__exportStar(require("./XPathElement"), exports); | ||
__exportStar(require("./XPathLexer"), exports); | ||
__exportStar(require("./XPathLexerErrorListener"), exports); | ||
__exportStar(require("./XPathRuleAnywhereElement"), exports); | ||
__exportStar(require("./XPathRuleElement"), exports); | ||
__exportStar(require("./XPathTokenAnywhereElement"), exports); | ||
__exportStar(require("./XPathTokenElement"), exports); | ||
__exportStar(require("./XPathWildcardAnywhereElement"), exports); | ||
__exportStar(require("./XPathWildcardElement"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPath = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:46.4373888-07:00 | ||
@@ -193,5 +194,5 @@ const CharStreams_1 = require("../../CharStreams"); | ||
} | ||
exports.XPath = XPath; | ||
XPath.WILDCARD = "*"; // word not operator/separator | ||
XPath.NOT = "!"; // word for invert operator | ||
exports.XPath = XPath; | ||
//# sourceMappingURL=XPath.js.map |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathElement = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../../Decorators"); |
@@ -7,10 +7,10 @@ import { ATN } from "../../atn/ATN"; | ||
export declare class XPathLexer extends Lexer { | ||
static readonly TOKEN_REF: number; | ||
static readonly RULE_REF: number; | ||
static readonly ANYWHERE: number; | ||
static readonly ROOT: number; | ||
static readonly WILDCARD: number; | ||
static readonly BANG: number; | ||
static readonly ID: number; | ||
static readonly STRING: number; | ||
static readonly TOKEN_REF = 1; | ||
static readonly RULE_REF = 2; | ||
static readonly ANYWHERE = 3; | ||
static readonly ROOT = 4; | ||
static readonly WILDCARD = 5; | ||
static readonly BANG = 6; | ||
static readonly ID = 7; | ||
static readonly STRING = 8; | ||
static readonly channelNames: string[]; | ||
@@ -22,11 +22,11 @@ static readonly modeNames: string[]; | ||
static readonly VOCABULARY: Vocabulary; | ||
readonly vocabulary: Vocabulary; | ||
get vocabulary(): Vocabulary; | ||
constructor(input: CharStream); | ||
readonly grammarFileName: string; | ||
readonly ruleNames: string[]; | ||
readonly serializedATN: string; | ||
readonly channelNames: string[]; | ||
readonly modeNames: string[]; | ||
get grammarFileName(): string; | ||
get ruleNames(): string[]; | ||
get serializedATN(): string; | ||
get channelNames(): string[]; | ||
get modeNames(): string[]; | ||
action(_localctx: RuleContext, ruleIndex: number, actionIndex: number): void; | ||
private ID_action(_localctx, actionIndex); | ||
private ID_action; | ||
private static readonly _serializedATNSegments; | ||
@@ -37,3 +37,3 @@ private static readonly _serializedATNSegment0; | ||
static __ATN: ATN; | ||
static readonly _ATN: ATN; | ||
static get _ATN(): ATN; | ||
} |
"use strict"; | ||
// Generated from XPathLexer.g4 by ANTLR 4.7.3-SNAPSHOT | ||
// Generated from XPathLexer.g4 by ANTLR 4.9.0-SNAPSHOT | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathLexer = void 0; | ||
const ATNDeserializer_1 = require("../../atn/ATNDeserializer"); | ||
@@ -58,2 +59,3 @@ const Lexer_1 = require("../../Lexer"); | ||
} | ||
exports.XPathLexer = XPathLexer; | ||
XPathLexer.TOKEN_REF = 1; | ||
@@ -473,3 +475,2 @@ XPathLexer.RULE_REF = 2; | ||
], ""); | ||
exports.XPathLexer = XPathLexer; | ||
//# sourceMappingURL=XPathLexer.js.map |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathLexerErrorListener = void 0; | ||
const Decorators_1 = require("../../Decorators"); | ||
@@ -15,0 +16,0 @@ class XPathLexerErrorListener { |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathRuleAnywhereElement = void 0; | ||
const Decorators_1 = require("../../Decorators"); | ||
@@ -15,0 +16,0 @@ const Trees_1 = require("../Trees"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathRuleElement = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -15,0 +16,0 @@ const ParserRuleContext_1 = require("../../ParserRuleContext"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathTokenAnywhereElement = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../../Decorators"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathTokenElement = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../../Decorators"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathWildcardAnywhereElement = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../../Decorators"); |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.XPathWildcardElement = void 0; | ||
// CONVERSTION complete, Burt Harris 10/14/2016 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("../../Decorators"); |
@@ -43,3 +43,3 @@ /*! | ||
constructor(literalNames: Array<string | undefined>, symbolicNames: Array<string | undefined>, displayNames: Array<string | undefined>); | ||
readonly maxTokenType: number; | ||
get maxTokenType(): number; | ||
getLiteralName(tokenType: number): string | undefined; | ||
@@ -46,0 +46,0 @@ getSymbolicName(tokenType: number): string | undefined; |
@@ -13,2 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VocabularyImpl = void 0; | ||
// ConvertTo-TS run at 2016-10-04T11:26:59.5829654-07:00 | ||
@@ -15,0 +16,0 @@ const Decorators_1 = require("./Decorators"); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3022505
540
34732