Skip to main content

sema_vm/
lib.rs

1#![allow(clippy::mutable_key_type)]
2pub mod chunk;
3pub mod compiler;
4pub mod core_expr;
5pub mod disasm;
6pub mod emit;
7pub mod lower;
8pub mod opcodes;
9pub mod resolve;
10pub mod serialize;
11pub mod vm;
12
13pub use chunk::{Chunk, ExceptionEntry, Function, UpvalueDesc};
14pub use compiler::{
15    compile, compile_many, compile_many_with_locals, compile_with_locals, CompileResult,
16};
17pub use core_expr::{
18    CoreExpr, DoLoop, DoVar, LambdaDef, PromptEntry, ResolvedExpr, ResolvedLambda, VarRef,
19    VarResolution,
20};
21pub use disasm::disassemble;
22pub use emit::Emitter;
23pub use lower::lower;
24pub use opcodes::Op;
25pub use resolve::{resolve, resolve_with_locals};
26pub use serialize::{deserialize_from_bytes, is_bytecode_file, serialize_to_bytes};
27pub use vm::{compile_program, Closure, UpvalueCell, VM};