Start working on a parser

This commit is contained in:
0x4261756D 2023-06-15 06:44:47 +02:00
parent f21a6272d4
commit bee2fcb62b
1 changed files with 4 additions and 1 deletions

View File

@ -1,8 +1,9 @@
pub mod tokenizer;
pub mod parser;
use std::{env, fs};
use crate::tokenizer::{Token, tokenize};
use crate::{tokenizer::{Token, tokenize}, parser::parse};
fn main()
{
@ -23,5 +24,7 @@ fn compile(file_content: &String) -> Result<(), &'static str>
{
let tokens: Vec<Token> = tokenize(&file_content)?;
println!("{:?}", tokens);
let node = parse(tokens)?;
println!("{:?}", node);
return Ok(());
}