@mojir/lits
Version:
Lits is a Lisp dialect implemented in TypeScript
116 lines (115 loc) • 3.55 kB
TypeScript
export declare const numberReservedSymbolRecord: {
readonly E: number;
readonly '-E': number;
readonly ε: number;
readonly '-\u03B5': number;
readonly PI: number;
readonly '-PI': number;
readonly π: number;
readonly '-\u03C0': number;
readonly PHI: number;
readonly '-PHI': number;
readonly φ: number;
readonly '-\u03C6': number;
readonly POSITIVE_INFINITY: number;
readonly '\u221E': number;
readonly NEGATIVE_INFINITY: number;
readonly '-\u221E': number;
readonly MAX_SAFE_INTEGER: number;
readonly MIN_SAFE_INTEGER: number;
readonly MAX_VALUE: number;
readonly MIN_VALUE: number;
readonly DELTA: number;
readonly '-DELTA': number;
readonly δ: number;
readonly '-\u03B4': number;
readonly NaN: number;
};
export declare const reservedSymbolRecord: {
readonly E: number;
readonly '-E': number;
readonly ε: number;
readonly '-\u03B5': number;
readonly PI: number;
readonly '-PI': number;
readonly π: number;
readonly '-\u03C0': number;
readonly PHI: number;
readonly '-PHI': number;
readonly φ: number;
readonly '-\u03C6': number;
readonly POSITIVE_INFINITY: number;
readonly '\u221E': number;
readonly NEGATIVE_INFINITY: number;
readonly '-\u221E': number;
readonly MAX_SAFE_INTEGER: number;
readonly MIN_SAFE_INTEGER: number;
readonly MAX_VALUE: number;
readonly MIN_VALUE: number;
readonly DELTA: number;
readonly '-DELTA': number;
readonly δ: number;
readonly '-\u03B4': number;
readonly NaN: number;
readonly true: true;
readonly false: false;
readonly null: null;
readonly then: null;
readonly else: null;
readonly end: null;
readonly case: null;
readonly each: null;
readonly in: null;
readonly when: null;
readonly while: null;
readonly catch: null;
readonly function: null;
readonly export: null;
readonly as: null;
};
export declare const validReservedSymbolRecord: {
readonly E: number;
readonly '-E': number;
readonly ε: number;
readonly '-\u03B5': number;
readonly PI: number;
readonly '-PI': number;
readonly π: number;
readonly '-\u03C0': number;
readonly PHI: number;
readonly '-PHI': number;
readonly φ: number;
readonly '-\u03C6': number;
readonly POSITIVE_INFINITY: number;
readonly '\u221E': number;
readonly NEGATIVE_INFINITY: number;
readonly '-\u221E': number;
readonly MAX_SAFE_INTEGER: number;
readonly MIN_SAFE_INTEGER: number;
readonly MAX_VALUE: number;
readonly MIN_VALUE: number;
readonly DELTA: number;
readonly '-DELTA': number;
readonly δ: number;
readonly '-\u03B4': number;
readonly NaN: number;
readonly true: true;
readonly false: false;
readonly null: null;
readonly then: null;
readonly else: null;
readonly end: null;
readonly case: null;
readonly each: null;
readonly in: null;
readonly when: null;
readonly while: null;
readonly catch: null;
readonly function: null;
readonly export: null;
readonly as: null;
};
export type ValidReservedSymbol = keyof typeof validReservedSymbolRecord;
export type ReservedSymbol = keyof typeof reservedSymbolRecord;
export declare function isReservedSymbol(symbol: string): symbol is keyof typeof validReservedSymbolRecord;
export declare function isNumberReservedSymbol(symbol: string): symbol is keyof typeof numberReservedSymbolRecord;