remove old executor
This commit is contained in:
parent
a5c2420d20
commit
40a1a459b3
4 changed files with 1 additions and 552 deletions
|
@ -1,6 +1,6 @@
|
|||
use core::panic;
|
||||
|
||||
use crate::{executor::Executor, lexer::{Token, TokenType}};
|
||||
use crate::lexer::{Token, TokenType};
|
||||
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum ASTPart {
|
||||
|
@ -22,7 +22,6 @@ pub enum ASTPart {
|
|||
For(AstFor),
|
||||
Continue(AstContinue),
|
||||
Return(AstReturn),
|
||||
RustFunction(AstRustFunction),
|
||||
NOOP
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
|
@ -124,11 +123,6 @@ pub struct AstReturn {
|
|||
pub value: Box<ASTPart>,
|
||||
pub pos: usize
|
||||
}
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct AstRustFunction {
|
||||
pub func: fn(&mut Executor, 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