Commit c318d9f
committed
feat: Add zyntax_embed SDK with language grammar interface
- Add zyntax_embed crate for embedding Zyntax as a JIT runtime
- Implement LanguageGrammar API for parsing with ZynPEG grammars
- Add ZyntaxRuntime and TieredRuntime for JIT compilation
- Add ZyntaxValue, ZyntaxString, ZyntaxArray for type interop
- Add ZyntaxPromise for async operations with .then()/.catch()
- Add FromZyntax/IntoZyntax traits for bidirectional conversion
- Extend lowering module with AstLowering trait and helpers
- Add compile_with_grammar for full source-to-native pipeline
- Add comprehensive book chapter (12-embedding-sdk.md)
- Add architecture documentation (EMBEDDING_SDK.md)
- Include External Function registration examples1 parent eaf1b6f commit c318d9f
19 files changed
Lines changed: 5936 additions & 9 deletions
File tree
- book
- crates
- compiler/src
- zyntax_embed
- src
- docs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments