waside 0.1.0

An AST for WebAssembly that supports decoding, encoding, and printing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::ast::instructions::Instruction;
use crate::Span;

/// A constant expression (used in globals, element offsets, data offsets, etc.).
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ConstExpr {
    /// Source span.
    pub span: Span,
    /// The sequence of constant instructions.
    pub ops: Vec<Instruction>,
}