Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/plotnik-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ default = ["plotnik-langs"]
insta = { version = "=1.45.1", features = ["yaml"] }
indoc = "=2.0.7"
serde_json = "=1.0.148"
tempfile = "3"
2 changes: 1 addition & 1 deletion crates/plotnik-lib/src/bytecode/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use super::{QTypeId, StepId, StringId};

/// Named query definition entry point (8 bytes).
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
#[repr(C)]
pub struct Entrypoint {
/// Definition name.
Expand Down
16 changes: 12 additions & 4 deletions crates/plotnik-lib/src/bytecode/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod entrypoint;
mod header;
mod ids;
mod instructions;
mod module;
mod nav;
mod sections;
mod type_meta;
Expand All @@ -21,19 +22,26 @@ pub use ids::{QTypeId, StepId, StringId};

pub use header::Header;

pub use nav::Nav;

pub use sections::{FieldSymbol, NodeSymbol, Slice, TriviaEntry};

pub use effects::{EffectOp, EffectOpcode};

pub use entrypoint::Entrypoint;

pub use type_meta::{TypeDef, TypeKind, TypeMember, TypeMetaHeader, TypeName};

pub use nav::Nav;

pub use effects::{EffectOp, EffectOpcode};

pub use instructions::{
Call, Match, MatchView, Opcode, Return, align_to_section, select_match_opcode,
};

pub use module::{
ByteStorage, EntrypointsView, Instruction, InstructionView, Module, ModuleError, StringsView,
SymbolsView, TriviaView, TypesView,
};

#[cfg(test)]
mod instructions_tests;
#[cfg(test)]
mod module_tests;
Loading