1pub mod cache;
12pub mod compiler;
13pub mod eval;
14pub mod executor;
15pub mod metadata;
16pub mod metrics;
17pub mod protocol;
18pub mod server;
19pub mod session;
20pub mod subprocess;
21pub mod transport;
22pub mod type_inference;
23pub mod wrapper;
24
25mod client;
27pub use client::ReplClient;
28
29pub use oxur_smap::{new_node_id, NodeId, SourceMap, SourcePos};
31
32pub type Result<T> = std::result::Result<T, Error>;
34
35#[derive(Debug, thiserror::Error)]
37pub enum Error {
38 #[error("Evaluation error: {0}")]
39 Eval(String),
40
41 #[error("Protocol error: {0}")]
42 Protocol(String),
43
44 #[error("Codec error: {0}")]
45 Codec(#[from] protocol::CodecError),
46
47 #[error("Language error: {0}")]
48 Language(#[from] oxur_lang::Error),
49
50 #[error("Compilation error: {0}")]
51 Compile(#[from] oxur_comp::Error),
52}