Struct rustdb::expr::Block [−][src]
pub struct Block<'a> {
pub param_count: usize,
pub return_type: DataType,
pub local_typ: Vec<DataType>,
pub ilist: Vec<Instruction>,
pub break_id: usize,
pub db: DB,
pub from: Option<CTableExpression>,
pub parse_only: bool,
// some fields omitted
}
Expand description
Compilation block ( body of function or batch section ).
Fields
param_count: usize
return_type: DataType
local_typ: Vec<DataType>
ilist: Vec<Instruction>
break_id: usize
db: DB
Database.
from: Option<CTableExpression>
Current table in scope by FROM clause( or UPDATE statment ).
parse_only: bool
Implementations
Check labels are all defined and patch jump instructions.
Add an instruction to the instruction list.
Define a local variable ( parameter or declared ).
Get the number of a local variable from a name.
Get the name of a local variable from a number.
Get a local jump id.
Get a local jump id to current location.
Set the local for a local goto lable.