@mojir/lits
Version:
Lits is a Lisp dialect implemented in TypeScript
13 lines (12 loc) • 1.22 kB
TypeScript
declare const binaryOperators: readonly ["^", "*", "/", "%", "+", "-", "<<", ">>", ">>>", "++", "<", "<=", "≤", ">", ">=", "≥", "==", "!=", "≠", "&", "xor", "|", "&&", "||", "??", "|>"];
declare const symbolicOperators: readonly ["^", "*", "/", "%", "+", "-", "<<", ">>", ">>>", "++", "<", "<=", "≤", ">", ">=", "≥", "==", "!=", "≠", "&", "xor", "|", "&&", "||", "??", "|>", "?", ":", "->", "...", ".", ",", "=", ":", ";"];
export declare function isFunctionOperator(operator: string): boolean;
export type SymbolicBinaryOperator = typeof binaryOperators[number];
export type SymbolicOperator = typeof symbolicOperators[number];
export declare function isBinaryOperator(operator: string): operator is SymbolicBinaryOperator;
export declare function assertBinaryOperator(operator: string): asserts operator is SymbolicBinaryOperator;
export declare function asBinaryOperator(operator: string): SymbolicBinaryOperator;
export declare function isSymbolicOperator(operator: string): operator is SymbolicOperator;
export declare function assertSymbolicOperator(operator: string): asserts operator is SymbolicOperator;
export declare function asSymbolicOperator(operator: string): SymbolicOperator;
export {};