functionalscript
Version:
FunctionalScript is a purely functional subset of JavaScript
9 lines (8 loc) • 435 B
TypeScript
import { type List } from '../../types/list/module.f.ts';
import { type EofToken, type ErrorToken, type NumberToken, type StringToken } from '../../js/tokenizer/module.f.ts';
export type JsonToken = {
readonly kind: 'true' | 'false' | 'null';
} | {
readonly kind: '{' | '}' | ':' | ',' | '[' | ']';
} | StringToken | NumberToken | ErrorToken | EofToken;
export declare const tokenize: (input: List<number>) => List<JsonToken>;