rename crates/ to engrams/; add el-compiler el package with bootstrap artifact

- crates/ → engrams/ (Rust engrams live here)
- el-compiler/ added: el self-hosting compiler as an el package
  - src/{compiler,lexer,parser,codegen}.el
  - bootstrap/el-compiler.elc (114KB, Rust-compiled seed)
- el.toml Cargo.toml workspace paths updated
- neuron-rs cross-repo path deps fixed (were pointing to products/ instead of foundation/)
This commit is contained in:
Will Anderson
2026-04-29 03:27:32 -05:00
parent 19ed2721ee
commit a42429012e
120 changed files with 3836 additions and 64 deletions
+29
View File
@@ -0,0 +1,29 @@
//! Compiler error type.
use thiserror::Error;
#[derive(Debug, Error)]
pub enum CompileError {
#[error("lex error: {0}")]
Lex(#[from] el_lexer::LexError),
#[error("parse error: {0}")]
Parse(#[from] el_parser::ParseError),
#[error("type error: {0}")]
Type(String),
#[error("codegen error: {0}")]
Codegen(String),
#[error("seal error: {0}")]
Seal(#[from] el_seal::SealError),
#[error("serialization error: {0}")]
Serialization(String),
#[error("io error: {0}")]
Io(String),
}
pub type CompileResult<T> = Result<T, CompileError>;