remove old executor

This commit is contained in:
afonya2 2025-06-03 18:35:59 +02:00
parent a5c2420d20
commit 40a1a459b3
Signed by: afonya
GPG key ID: EBB9C4CAFAAFB2DC
4 changed files with 1 additions and 552 deletions

View file

@ -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 {