1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! Module for SPIR-V binary processing.
//!
//! This module provides a [`Decoder`](struct.Decoder.html) and a
//! [`Parser`](struct.Parser.html):
//!
//! * The decoder is a low-level binary processing tool; it has no knowlege
//!   of the SPIR-V grammar. It only serves SPIR-V word requests.
//! * The parser is a high-level binary processing tool; it has knowledge
//!   of the SPIR-V grammar. It works with the
//!   [`Consumer`](trait.Consumer.html) to process a SPIR-V binary on the
//!   instruction level.

pub use self::autogen_error::Error as DecodeError;
pub use self::decoder::Decoder;
pub use self::parser::Action as ParseAction;
pub use self::parser::Result as ParseResult;
pub use self::parser::State as ParseState;
pub use self::parser::{parse_bytes, parse_words, Consumer, Parser};

pub use self::assemble::Assemble;
pub use self::disassemble::Disassemble;

mod assemble;
mod autogen_error;
mod decoder;
mod disassemble;
mod parser;
mod tracker;