Files
matcha/src/interpret/opchain.rs
T

11 lines
250 B
Rust

use crate::parse::ASTNode;
fn get_domain(ast: &mut Vec<ASTNode>) -> Vec<ASTNode> {
ast.iter().take_while(|x| !matches!(x, ASTNode::StatementEnd)).cloned().collect()
}
pub fn operator_chain(ast: &mut Vec<ASTNode>) {
let tree = get_domain(ast);
}