@mmmnt/feat-core 0.1.1 → 0.1.4
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 +20 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @mmmnt/feat-core
|
|
2
|
+
|
|
3
|
+
The `.feat` parser: source text → BuiltSpec intermediate representation. Deterministic,
|
|
4
|
+
hand-rolled recursive descent; enforces the language's four closed reference spaces (services,
|
|
5
|
+
schemas, commands, actors) at parse time with twelve coded errors, each carrying a line number
|
|
6
|
+
and a hint.
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
import { parse } from "@mmmnt/feat-core";
|
|
10
|
+
|
|
11
|
+
const result = await parse({ spec: "specs/create-user.feat", config: "feat.config.json" });
|
|
12
|
+
// { status: "OK", body: BuiltSpec } | { status: "ERR", body: { code, message, line?, hint? } }
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The parser's conformance suite is the repository's `corpus/` — nine exemplars, each asserted
|
|
16
|
+
against its expected IR. Same spec + config = identical IR, every invocation.
|
|
17
|
+
|
|
18
|
+
Part of [Feature](https://github.com/mmmnt/feature). Docs: https://github.com/mmmnt/feature/wiki
|
|
19
|
+
|
|
20
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmmnt/feat-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Feat language core: Langium grammar, parser, AST->BuiltSpec IR, closed-reference-space validation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@mmmnt/feat-types": "0.1.
|
|
20
|
-
"@mmmnt/feat-runtime": "0.1.
|
|
19
|
+
"@mmmnt/feat-types": "^0.1.2",
|
|
20
|
+
"@mmmnt/feat-runtime": "^0.1.4"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"ajv": "^8.17.0",
|