/** * The token shapes the parser's families read: operator precedence and the * comparison chain, the kinds that may open a statement or sit at the top level * of a record literal, the kinds a type-argument list may contain, and the two * one-line questions asked of a token (may it name a declaration, and what did * the author actually write for a number). * * D114 R1c: these were module-level constants in `parser.ts`. They are pure * tables over `TokenKind`, and both `parser.ts` and its collaborators read * them, so they live where neither has to import the other. */ import type { ComparisonChainExpression } from "../ast.ts"; import { type Token, type TokenKind } from "../token.ts"; export declare const memberNameKinds: Set; export declare const statementStarterKinds: Set; export declare const statementStarterWords: Set; export declare const recordFieldLevelKinds: Set; export declare const typeArgumentTokenKinds: Set; export declare const binaryPrecedence: Partial>; export declare const comparisonOperators: Partial>; export declare function declarationNameAhead(kind: TokenKind, value: string): boolean; export declare function writtenNumber(token: Token): string; //# sourceMappingURL=tokens.d.ts.map