wisp/src/parser.rs

25 lines
388 B
Rust
Raw Normal View History

use crate::{
lexer::{Kwarg, Token},
node::Node,
};
pub enum ParserError {}
2022-07-03 17:55:19 -05:00
pub fn parse_vec(mut tokens: &[Token]) -> Node {
let mut nodes: Node = Node::default();
for i in 1..tokens.len() - 1 {
let token = &tokens[i];
match token {
_ => {}
}
}
println!("{}", nodes);
2022-07-03 17:55:19 -05:00
nodes
}
pub enum TagTypes {
Text,
Unknown,
}