name:
dist/Parser/ReductionPair.d.ts
-rw-r--r--
581
1/**
2 * Represents the length to reduce the stack by, and the replacement symbol that will replace those tokens in the stack.
3 */
4declare class ReductionPair {
5 private lengthToReduceStackBy;
6 private replacementSymbol;
7 constructor(replacementSymbol: number, length: number);
8 /**
9 * Get the number representing the length to reduce the stack by.
10 * @returns {number}
11 */
12 getLengthToReduceStackBy(): number;
13 /**
14 * Get the replacement token index.
15 * @returns {number}
16 */
17 getReplacementSymbol(): number;
18}
19export { ReductionPair };