UNPKG

mathup

Version:

Easy MathML authoring tool with a quick to write syntax

112 lines 2.56 kB
export function isAlphabetic(char: string): boolean; export function isAlphanumeric(char: string): boolean; export function isMark(char: string): boolean; export function isNumeric(char: string): boolean; export function isOperational(char: string): boolean; export function isPunctClose(char: string): boolean; export function isPunctOpen(char: string): boolean; export const KNOWN_IDENTS: Map<string, { value: string; attrs?: undefined; } | { value: string; attrs: { mathvariant: string; }; } | { value: string; attrs: { class: string; mathvariant?: undefined; }; }>; export const KNOWN_OPS: Map<string, { value: string; attrs?: undefined; sep?: undefined; } | { value: string; attrs: { class: string; lspace?: undefined; rspace?: undefined; stretchy?: undefined; }; sep?: undefined; } | { value: string; attrs: { lspace: number; rspace: number; class?: undefined; stretchy?: undefined; }; sep?: undefined; } | { value: string; attrs: { stretchy: boolean; class?: undefined; lspace?: undefined; rspace?: undefined; }; sep: boolean; }>; /** @type {Map<string, Omit<Token, "type">>} */ export const KNOWN_PARENS_OPEN: Map<string, Omit<Token, "type">>; export const KNOWN_PARENS_CLOSE: Map<string, { value: string; }>; export const KNOWN_PREFIX: Map<string, { name: string; accent: string; attrs?: undefined; arity?: undefined; } | { name: string; attrs: { open: string; close: string; linethickness?: undefined; class?: undefined; }; accent?: undefined; arity?: undefined; } | { name: string; arity: number; attrs: { linethickness: number; open: string; close: string; class?: undefined; }; accent?: undefined; } | { name: string; arity: number; accent?: undefined; attrs?: undefined; } | { name: string; accent?: undefined; attrs?: undefined; arity?: undefined; } | { name: string; attrs: { class: string; open?: undefined; close?: undefined; linethickness?: undefined; }; accent?: undefined; arity?: undefined; }>; export const KNOWN_COMMANDS: Map<string, { name: string; value: string; }>; export type Token = import("./index.js").Token; export type LeximeTest = (char: string) => boolean; //# sourceMappingURL=lexemes.d.ts.map