Struct mycroft::ir::Program [] [src]

pub struct Program {
    pub predicates: BTreeMap<String, Predicate>,
    pub queries: BTreeMap<String, Query>,
    pub rules: BTreeMap<String, Rule>,
}

IR Program representation This is the structure to be handed off to the code generator.

Fields

Map from predicate name to IR predicate

Map from query name to IR query

Map from rule name to IR rule

Methods

impl Program
[src]

[src]

Generate a program IR from an AST

Trait Implementations

Auto Trait Implementations

impl Send for Program

impl Sync for Program