@danielsimonjr/mathts-ast 0.1.18 → 0.1.20
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 +28 -28
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -0
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
# @danielsimonjr/mathts-ast
|
|
2
|
-
|
|
3
|
-
Standalone AST node constructors for [MathTS](https://github.com/danielsimonjr/mathts) expressions.
|
|
4
|
-
|
|
5
|
-
A focused entry point over the AST nodes in
|
|
6
|
-
[`@danielsimonjr/mathts-expression`](https://www.npmjs.com/package/@danielsimonjr/mathts-expression).
|
|
7
|
-
The implementation is re-exported, not duplicated. Useful for tooling that builds,
|
|
8
|
-
walks, transforms, or pretty-prints expression trees without pulling in the evaluator.
|
|
9
|
-
|
|
10
|
-
## Install
|
|
11
|
-
|
|
12
|
-
```sh
|
|
13
|
-
npm install @danielsimonjr/mathts-ast
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## What it exports
|
|
17
|
-
|
|
18
|
-
The 16 AST node constructor factories: `createNode`, `createConstantNode`,
|
|
19
|
-
`createOperatorNode`, `createSymbolNode`, `createFunctionNode`, `createIndexNode`,
|
|
20
|
-
`createAccessorNode`, `createArrayNode`, `createAssignmentNode`, `createBlockNode`,
|
|
21
|
-
`createConditionalNode`, `createFunctionAssignmentNode`, `createObjectNode`,
|
|
22
|
-
`createParenthesisNode`, `createRangeNode`, `createRelationalNode` -- plus the
|
|
23
|
-
associated TypeScript types. These are MathTS factory functions; wire them via
|
|
24
|
-
`create()` / `typed-function` as from `@danielsimonjr/mathts-expression`.
|
|
25
|
-
|
|
26
|
-
## License
|
|
27
|
-
|
|
28
|
-
MIT (c) Daniel Simon Jr.
|
|
1
|
+
# @danielsimonjr/mathts-ast
|
|
2
|
+
|
|
3
|
+
Standalone AST node constructors for [MathTS](https://github.com/danielsimonjr/mathts) expressions.
|
|
4
|
+
|
|
5
|
+
A focused entry point over the AST nodes in
|
|
6
|
+
[`@danielsimonjr/mathts-expression`](https://www.npmjs.com/package/@danielsimonjr/mathts-expression).
|
|
7
|
+
The implementation is re-exported, not duplicated. Useful for tooling that builds,
|
|
8
|
+
walks, transforms, or pretty-prints expression trees without pulling in the evaluator.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```sh
|
|
13
|
+
npm install @danielsimonjr/mathts-ast
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## What it exports
|
|
17
|
+
|
|
18
|
+
The 16 AST node constructor factories: `createNode`, `createConstantNode`,
|
|
19
|
+
`createOperatorNode`, `createSymbolNode`, `createFunctionNode`, `createIndexNode`,
|
|
20
|
+
`createAccessorNode`, `createArrayNode`, `createAssignmentNode`, `createBlockNode`,
|
|
21
|
+
`createConditionalNode`, `createFunctionAssignmentNode`, `createObjectNode`,
|
|
22
|
+
`createParenthesisNode`, `createRangeNode`, `createRelationalNode` -- plus the
|
|
23
|
+
associated TypeScript types. These are MathTS factory functions; wire them via
|
|
24
|
+
`create()` / `typed-function` as from `@danielsimonjr/mathts-expression`.
|
|
25
|
+
|
|
26
|
+
## License
|
|
27
|
+
|
|
28
|
+
MIT (c) Daniel Simon Jr.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @danielsimonjr/mathts-ast
|
|
3
|
+
*
|
|
4
|
+
* Standalone AST node constructors for MathTS expressions. Re-exports the
|
|
5
|
+
* abstract-syntax-tree node factories from
|
|
6
|
+
* {@link @danielsimonjr/mathts-expression} as a focused package, for tooling
|
|
7
|
+
* that builds, walks, transforms, or pretty-prints MathTS expression trees
|
|
8
|
+
* without needing the evaluator. The implementation lives in expression; this is
|
|
9
|
+
* an entry point, not a copy.
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
*/
|
|
13
|
+
export { createNode, createAccessorNode, createArrayNode, createAssignmentNode, createBlockNode, createConditionalNode, createConstantNode, createFunctionAssignmentNode, createFunctionNode, createIndexNode, createObjectNode, createOperatorNode, createParenthesisNode, createRangeNode, createRelationalNode, createSymbolNode, } from '@danielsimonjr/mathts-expression';
|
|
14
|
+
export type * from '@danielsimonjr/mathts-expression';
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,EAC5B,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAG1C,mBAAmB,kCAAkC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danielsimonjr/mathts-ast",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "Standalone AST node constructors for MathTS expressions, re-exported as a focused package",
|
|
5
5
|
"author": "Daniel Simon Jr.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,27 +19,27 @@
|
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "tsup src/index.ts --format esm --dts
|
|
22
|
+
"build": "tsup src/index.ts --format esm --clean && tsc -p tsconfig.dts.json",
|
|
23
23
|
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
24
|
-
"test": "
|
|
24
|
+
"test": "bun test",
|
|
25
25
|
"test:watch": "vitest",
|
|
26
|
-
"test:coverage": "
|
|
26
|
+
"test:coverage": "bun test --coverage",
|
|
27
27
|
"typecheck": "tsc --noEmit",
|
|
28
|
-
"lint": "
|
|
29
|
-
"lint:fix": "
|
|
28
|
+
"lint": "oxlint src",
|
|
29
|
+
"lint:fix": "oxlint src --fix",
|
|
30
30
|
"clean": "rm -rf dist",
|
|
31
31
|
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@danielsimonjr/mathts-core": "^0.
|
|
35
|
-
"@danielsimonjr/mathts-expression": "^0.
|
|
34
|
+
"@danielsimonjr/mathts-core": "^0.15.4",
|
|
35
|
+
"@danielsimonjr/mathts-expression": "^0.8.1",
|
|
36
36
|
"typed-function": "^4.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^26.4.0",
|
|
40
40
|
"tsup": "^8.0.0",
|
|
41
|
-
"typescript": "^
|
|
42
|
-
"vitest": "^
|
|
41
|
+
"typescript": "^7.0.2",
|
|
42
|
+
"vitest": "^5.0.0"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|