Skip to content

Commit 3b71c6d

Browse files
committed
chore: Archive zyn_parser, superseded by zyn_peg
- Move crates/zyn_parser to archive/zyn_parser - Remove zyn_parser from workspace members in Cargo.toml - Add archive/README.md explaining the archive - Add .vscode/settings.json to associate .zyn files with pest syntax The old hand-written zyn_parser has been superseded by zyn_peg, which uses a PEG grammar approach with JSON semantic actions. The new approach is more maintainable and flexible.
1 parent a916f06 commit 3b71c6d

16 files changed

Lines changed: 24 additions & 1 deletion

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"*.zyn": "pest"
4+
}
5+
}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace]
22
resolver = "2"
3-
members = ["crates/typed_ast", "crates/compiler", "crates/whirlwind_adapter", "crates/zyntax_cli", "crates/runtime", "crates/zyntax_plugin_macros", "crates/zyn_parser", "crates/zyn_peg"]
3+
members = ["crates/typed_ast", "crates/compiler", "crates/whirlwind_adapter", "crates/zyntax_cli", "crates/runtime", "crates/zyntax_plugin_macros", "crates/zyn_peg"]
44

55

66
[workspace.dependencies]

archive/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Archive
2+
3+
This directory contains deprecated/archived code that is kept for reference but is no longer part of the active codebase.
4+
5+
## Contents
6+
7+
### zyn_parser
8+
9+
**Archived:** November 2024
10+
11+
The original hand-written parser for the Zyn language. This has been superseded by `zyn_peg`, which uses a PEG grammar approach with JSON semantic actions to generate TypedAST directly at parse time.
12+
13+
The new approach (`crates/zyn_peg`) is:
14+
- More maintainable (grammar + actions in a single `.zyn` file)
15+
- More flexible (easy to add new language frontends)
16+
- Better documented (see `book/` directory)
17+
18+
If you need to reference the old implementation, it's preserved here.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)