nerdamer/parser
Programmatic parser access and settings for JavaScript and TypeScript. This is separate from Nerdamer expression syntax.
nerdamer/parser. For functions used inside nerdamer('...'), see Nerdamer Notation.Interfaces
Operator: unknownInterfaceOperator metadata accepted by the parser registry. Registration accepts custom action names and the legacy prefix/postfix aliases. Prefix, postfix, and iteration flags are optional because the parser supplies defaults.
OperatorDefinition: unknownInterfaceOperator metadata accepted by the parser registry. Registration accepts custom action names and the legacy prefix/postfix aliases. Prefix, postfix, and iteration flags are optional because the parser supplies defaults.
ParserAPI: unknownInterfaceSupported high-level parser surface. Tokenization, RPN conversion, and parser-stack machinery remain internal implementation details even though Nerdamer itself uses them across modules.
Types
Variable
APIs
BinaryArithmeticOperation: "pow" | "times" | "div" | "minus" | "plus"APIThe supported operator actions
ComparisonOperation: "eq" | "lt" | "lte" | "gt" | "gte"APIAPI exported by Nerdamer.
Language: "eng" | "spa" | "fra" | "deu" | "por" | "ita" | "nld"APIAPI exported by Nerdamer.
Operation(a: ParserEntity, b?: ParserEntity): ParserEntityAPIThe type used to defined a operation function for the parser
OperatorAction: "dot" | "doubleFactorial" | "factorial" | "mod" | "percent" | BinaryArithmeticOperation | "setEqual" | ComparisonOperation | "mapTo" | "comma" | "assign" | "functionAssign" | "in"APIAPI exported by Nerdamer.
PostFixFunction(b: ParserEntity): ParserEntityAPIThe type used to defined a prefix for the parser
PreFixFunction(a: ParserEntity): ParserEntityAPIThe type used to defined a prefix for the parser
SettingsType: Omit<InternalSettingsType, "DEFER_SIMPLIFICATION">APIParser settings supported by the public parser facade. DEFER_SIMPLIFICATION remains an internal compatibility setting and is not part of the supported 2.0 parser API.
