Struct portus::lang::Prog [−][src]
pub struct Prog(pub Vec<Event>);
AST representation of a datapath program.
Methods
impl Prog
[src]
impl Prog
pub fn new_with_scope(source: &[u8]) -> Result<(Self, Scope)>
[src]
pub fn new_with_scope(source: &[u8]) -> Result<(Self, Scope)>
Turn raw bytes into an AST representation, including implementing syntactic sugar features
such as (report)
and (fallthrough)
.
Trait Implementations
impl Debug for Prog
[src]
impl Debug for Prog
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Prog
[src]
impl PartialEq for Prog