2022-07-02 02:25:43 -05:00
|
|
|
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();
|
2022-07-02 02:25:43 -05:00
|
|
|
|
|
|
|
for i in 1..tokens.len() - 1 {
|
|
|
|
let token = &tokens[i];
|
|
|
|
match token {
|
|
|
|
_ => {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
println!("{}", nodes);
|
2022-07-03 17:55:19 -05:00
|
|
|
nodes
|
2022-07-02 02:25:43 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub enum TagTypes {
|
|
|
|
Text,
|
|
|
|
Unknown,
|
|
|
|
}
|