Struct whitespacers::Program
[−]
[src]
pub struct Program { /* fields omitted */ }
This struct contains the internal representation of a whitespace program.
Methods
impl Program
[src]
fn strip(&mut self)
Remove source location information from the program.
impl Program
[src]
fn parse(code: Vec<u8>) -> Result<Program, WsError>
Parse a program written in whitespace to a format suitable for execution.
fn dump(&self) -> Vec<u8>
Serialize the internal representation back into a whitespace program.
impl Program
[src]
fn disassemble(&self) -> String
Disassemble a program into a human-readable whitespace assembly.
fn assemble(source: String) -> Result<Program, WsError>
Parse a program written in whitespace assembly into a program.
Trait Implementations
impl Debug for Program
[src]
impl Clone for Program
[src]
fn clone(&self) -> Program
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more