added function calls, Rust functions, enviroment
This commit is contained in:
parent
867cea5046
commit
58b1b2f94b
5 changed files with 94 additions and 8 deletions
|
@ -21,6 +21,7 @@ pub enum ASTPart {
|
|||
Break(AstBreak),
|
||||
For(AstFor),
|
||||
Continue(AstContinue),
|
||||
RustFunction(AstRustFunction),
|
||||
NOOP
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
|
@ -117,6 +118,11 @@ pub struct AstFor {
|
|||
pub struct AstContinue {
|
||||
pub pos: usize
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct AstRustFunction {
|
||||
pub func: fn(Vec<ASTPart>) -> ASTPart,
|
||||
pub pos: usize
|
||||
}
|
||||
|
||||
fn is_end(input: &Token, end: &Vec<Token>) -> bool {
|
||||
for token in end {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue