@danielsimonjr/mathts-parser
v0.1.3
Published
Standalone expression parser for MathTS — the parse function and Parser class, re-exported as a focused package
Maintainers
Readme
@danielsimonjr/mathts-parser
Standalone expression parser for MathTS.
This package is a focused entry point over the parser that lives in
@danielsimonjr/mathts-expression.
It re-exports the parser surface so you can install and consume just the parser
(mirroring the other MathTS packages — expression, matrix, parallel,
functions, …). The implementation is not duplicated; it is re-exported.
Install
npm install @danielsimonjr/mathts-parserWhat it exports
createParse— factory for theparsefunction (string → AST).createParserClass— factory for theParserclass (stateful, scope-aware).createParser— factory for theparser()instance (aParserwith its own scope).- AST node constructors produced by parsing:
createNode,createConstantNode,createOperatorNode,createSymbolNode,createFunctionNode, … and the rest. - Operator/keyword metadata:
keywords,properties,getPrecedence,getAssociativity,isAssociativeWith,getOperator. - The associated TypeScript types (AST node types, parser/operator types).
These are MathTS factory functions: wire them into a MathTS instance via
create() / typed-function, exactly as you would when importing them from
@danielsimonjr/mathts-expression.
import { createParse, createParserClass } from '@danielsimonjr/mathts-parser';License
MIT © Daniel Simon Jr.
