@danielsimonjr/mathts-parser 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,6 +18,7 @@ npm install @danielsimonjr/mathts-parser
18
18
 
19
19
  - `createParse` — factory for the `parse` function (string → AST).
20
20
  - `createParserClass` — factory for the `Parser` class (stateful, scope-aware).
21
+ - `createParser` — factory for the `parser()` instance (a `Parser` with its own scope).
21
22
  - AST node constructors produced by parsing: `createNode`, `createConstantNode`,
22
23
  `createOperatorNode`, `createSymbolNode`, `createFunctionNode`, … and the rest.
23
24
  - Operator/keyword metadata: `keywords`, `properties`, `getPrecedence`,
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from '@danielsimonjr/mathts-expression';
2
- export { createAccessorNode, createArrayNode, createAssignmentNode, createBlockNode, createConditionalNode, createConstantNode, createFunctionAssignmentNode, createFunctionNode, createIndexNode, createNode, createObjectNode, createOperatorNode, createParenthesisNode, createParse, createParserClass, createRangeNode, createRelationalNode, createSymbolNode, getAssociativity, getOperator, getPrecedence, isAssociativeWith, keywords, properties } from '@danielsimonjr/mathts-expression';
2
+ export { createAccessorNode, createArrayNode, createAssignmentNode, createBlockNode, createConditionalNode, createConstantNode, createFunctionAssignmentNode, createFunctionNode, createIndexNode, createNode, createObjectNode, createOperatorNode, createParenthesisNode, createParse, createParser, createParserClass, createRangeNode, createRelationalNode, createSymbolNode, getAssociativity, getOperator, getPrecedence, isAssociativeWith, keywords, properties } from '@danielsimonjr/mathts-expression';
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
  import {
3
3
  createParse,
4
4
  createParserClass,
5
+ createParser,
5
6
  createNode,
6
7
  createAccessorNode,
7
8
  createArrayNode,
@@ -40,6 +41,7 @@ export {
40
41
  createOperatorNode,
41
42
  createParenthesisNode,
42
43
  createParse,
44
+ createParser,
43
45
  createParserClass,
44
46
  createRangeNode,
45
47
  createRelationalNode,
package/package.json CHANGED
@@ -1,61 +1,61 @@
1
- {
2
- "name": "@danielsimonjr/mathts-parser",
3
- "version": "0.1.0",
4
- "description": "Standalone expression parser for MathTS — the parse function and Parser class, re-exported as a focused package",
5
- "author": "Daniel Simon Jr.",
6
- "license": "MIT",
7
- "type": "module",
8
- "main": "./dist/index.js",
9
- "module": "./dist/index.js",
10
- "types": "./dist/index.d.ts",
11
- "exports": {
12
- ".": {
13
- "import": "./dist/index.js",
14
- "types": "./dist/index.d.ts"
15
- }
16
- },
17
- "files": [
18
- "dist",
19
- "README.md"
20
- ],
21
- "scripts": {
22
- "build": "tsup src/index.ts --format esm --dts --clean",
23
- "dev": "tsup src/index.ts --format esm --dts --watch",
24
- "test": "vitest run",
25
- "test:watch": "vitest",
26
- "test:coverage": "vitest run --coverage",
27
- "typecheck": "tsc --noEmit",
28
- "lint": "eslint src --ext .ts",
29
- "lint:fix": "eslint src --ext .ts --fix",
30
- "clean": "rm -rf dist",
31
- "build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
32
- },
33
- "dependencies": {
34
- "@danielsimonjr/mathts-core": "0.1.3",
35
- "@danielsimonjr/mathts-expression": "0.2.1",
36
- "typed-function": "^4.0.0"
37
- },
38
- "devDependencies": {
39
- "@types/node": "^25.5.2",
40
- "tsup": "^8.0.0",
41
- "typescript": "^5.3.0",
42
- "vitest": "^4.1.5"
43
- },
44
- "publishConfig": {
45
- "access": "public"
46
- },
47
- "repository": {
48
- "type": "git",
49
- "url": "https://github.com/danielsimonjr/mathts",
50
- "directory": "parser"
51
- },
52
- "keywords": [
53
- "math",
54
- "typescript",
55
- "parser",
56
- "parse",
57
- "expression",
58
- "ast",
59
- "tokenizer"
60
- ]
61
- }
1
+ {
2
+ "name": "@danielsimonjr/mathts-parser",
3
+ "version": "0.1.2",
4
+ "description": "Standalone expression parser for MathTS — the parse function and Parser class, re-exported as a focused package",
5
+ "author": "Daniel Simon Jr.",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.js",
10
+ "types": "./dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "README.md"
20
+ ],
21
+ "scripts": {
22
+ "build": "tsup src/index.ts --format esm --dts --clean",
23
+ "dev": "tsup src/index.ts --format esm --dts --watch",
24
+ "test": "vitest run",
25
+ "test:watch": "vitest",
26
+ "test:coverage": "vitest run --coverage",
27
+ "typecheck": "tsc --noEmit",
28
+ "lint": "eslint src --ext .ts",
29
+ "lint:fix": "eslint src --ext .ts --fix",
30
+ "clean": "rm -rf dist",
31
+ "build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
32
+ },
33
+ "dependencies": {
34
+ "@danielsimonjr/mathts-core": "0.1.4",
35
+ "@danielsimonjr/mathts-expression": "0.2.3",
36
+ "typed-function": "^4.0.0"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^25.5.2",
40
+ "tsup": "^8.0.0",
41
+ "typescript": "^5.3.0",
42
+ "vitest": "^4.1.5"
43
+ },
44
+ "publishConfig": {
45
+ "access": "public"
46
+ },
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "https://github.com/danielsimonjr/mathts",
50
+ "directory": "parser"
51
+ },
52
+ "keywords": [
53
+ "math",
54
+ "typescript",
55
+ "parser",
56
+ "parse",
57
+ "expression",
58
+ "ast",
59
+ "tokenizer"
60
+ ]
61
+ }