rhue_bytecode/lib.rs
1//! Rhue's bytecode. Instruction encoding, opcodes, function prototypes, the
2//! arithmetic the constant folder and VM share, the verifier that checks a
3//! prototype before it runs, and the binary format chunks get saved in.
4//!
5//! This is part of [Rhue](https://docs.rs/rhue)'s guts. If you're embedding
6//! Rhue, use the `rhue` crate, that's the API that stays stable.
7
8mod arith;
9mod instr;
10mod op;
11mod proto;
12mod serial;
13mod verify;
14
15pub use arith::{ArithOp, arith, floor, format_number};
16pub use instr::Instr;
17pub use op::Op;
18pub use proto::{Constant, InlineCache, LocalVar, Proto, TableTemplate, UpvalDesc, Verified};
19pub use serial::{ChunkTypes, FORMAT_VERSION, LoadError, MAGIC, is_chunk, read_chunk, write_chunk};
20pub use verify::{MAX_STACK, MAX_TEMPLATE_SIZE, VerifyError, verify, verify_once};