UNPKG

cnum

Version:

Represent rational numbers in comfortably numeric way.

16 lines (15 loc) 320 B
export declare const enum TokenType { identifier = 0, keyword = 1, separator = 2, operator = 3, literal = 4, comment = 5 } export declare class Token { type: TokenType; s: string; constructor(type: TokenType, s: string); toString(): string; } export default Token;