Skip to content

Commit 4a72720

Browse files
authored
feat:(engine): add parser engine lib (#3)
1 parent c05a8d2 commit 4a72720

67 files changed

Lines changed: 6651 additions & 3898 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/scratch/
2+
13
# Build artifacts
24
/target/
35
/slash-parser-js/pkg/
@@ -18,10 +20,12 @@ Thumbs.db
1820
*.swo
1921

2022
# Fuzz corpus artifacts (keep corpus seeds in VCS)
21-
/fuzz/artifacts/
22-
/fuzz/hfuzz_*
23-
/fuzz/fuzz_*
23+
fuzz/artifacts/
24+
fuzz/hfuzz_*
25+
fuzz/fuzz_*
2426

27+
# no fuzz in root
28+
fuzz
2529

2630

2731
# Environment & Secrets
@@ -46,3 +50,4 @@ tmp/
4650
# moon
4751
.moon/cache/
4852
.moon/docker/
53+

‎.moon/partials/publish-crate.yml‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
tasks:
2+
publish:
3+
command: cargo
4+
args:
5+
- publish
6+
- --token
7+
- $CARGO_REGISTRY_TOKEN
8+
inputs:
9+
- src/**/*.rs
10+
- Cargo.toml
11+
- Cargo.lock
12+
options:
13+
persistent: false
14+
15+
review:
16+
command: cargo
17+
args:
18+
- publish
19+
- --dry-run
20+
inputs:
21+
- src/**/*.rs
22+
- Cargo.toml
23+
- Cargo.lock

‎.moon/workspace.yml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
$schema: "https://moonrepo.dev/schemas/workspace.json"
22

33
projects:
4+
- "engine"
45
# - "wit"
5-
- "parser"
66
# - "wasm-*"
77
# - "slash-*"
88
# - "riff-cli"
99
# - "website"
1010
# - "docs"
1111

12-
# constraints:
13-
# enforceLayerRelationships: true
14-
# tagRelationships:
15-
# core: []
16-
# wasm: ["core"]
17-
# sdk: ["wasm", "core"]
18-
# cli: ["sdk", "core"]
19-
# pkg: ["cli"]
20-
# docs: ["docs"]
12+
constraints:
13+
enforceLayerRelationships: true
14+
tagRelationships:
15+
core: []
16+
wasm: ["core"]
17+
sdk: ["wasm", "core"]
18+
cli: ["sdk", "core"]
19+
pkg: ["cli"]
20+
docs: ["docs"]
2121

2222
generator:
2323
templates:

‎.release-please-manifest.json‎

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
11
{
2-
"parser": "0.1.0",
3-
"wasm-javascript": "0.1.0",
4-
"wasm-wasi": "0.1.0",
5-
"spec": "0.1.0",
6-
"riff-cli": "0.1.0",
7-
"slash-rust": "0.1.0",
8-
"slash-javascript": "0.1.0",
9-
"slash-web": "0.1.0",
10-
"slash-python": "0.1.0",
11-
"slash-go": "0.1.0"
2+
"parser": "0.1.0"
123
}

‎Cargo.lock‎

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"parser",
4+
"engine",
55
]
66

77
[workspace.package]

‎README.md‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@
33
A Rust + WebAssembly slash command parser. Extracts `/commands` from text with support for
44
single-line arguments, multi-line continuation (`/`), and fenced code blocks.
55

6-
## Architecture
7-
8-
```
9-
slash-parser-core/ Pure Rust parser — no WASM dependencies
10-
slash-parser-js/ JS/TS library (wasm-bindgen + TypeScript types)
11-
slash-parse/ CLI tool — streaming JSONL output
12-
fuzz/ cargo-fuzz harness
13-
```
14-
15-
The core crate is the single source of truth. The JS library and CLI are thin consumers.
16-
176
## Quick start
187

198
Managed by [Moon](https://moonrepo.dev). All tool versions are pinned via `.prototools`.

docs/adrs/0006-repository-structure-and-project-boundaries.md renamed to docs/0006-repository-structure-and-project-boundaries.md

File renamed without changes.

docs/adrs/0007-build-tooling-and-toolchain-management.md renamed to docs/0007-build-tooling-and-toolchain-management.md

File renamed without changes.

docs/adrs/0009-jsonl-default-output-with-pretty-json-array-option.md renamed to docs/0009-jsonl-default-output-with-pretty-json-array-option.md

File renamed without changes.

0 commit comments

Comments
 (0)