forked from katzen-cafe/iowo
lang: current state idk try to parallelize
This commit is contained in:
parent
3e2c5946c8
commit
37651a83bc
11 changed files with 522 additions and 15 deletions
|
@ -15,18 +15,18 @@ struct Args {
|
|||
fn main() {
|
||||
let args = Args::parse();
|
||||
let n = args.file.clone();
|
||||
// let f = fs::read_to_string(n.clone()).expect("failed to read file");
|
||||
let f = fs::read_to_string(n.clone()).expect("failed to read file");
|
||||
|
||||
// let toks = dbg!(syntax_kind::lex(&f));
|
||||
// let input = input::Input::new(&toks);
|
||||
// let mut parser = lst_parser::Parser::new(input);
|
||||
let toks = dbg!(syntax_kind::lex(&f));
|
||||
let input = input::Input::new(&toks);
|
||||
let mut parser = lst_parser::Parser::new(input);
|
||||
|
||||
// grammar::source_file(&mut parser);
|
||||
grammar::source_file(&mut parser);
|
||||
|
||||
// let p_out = dbg!(parser.finish());
|
||||
// let o = Output::from_parser_output(toks, p_out);
|
||||
let p_out = dbg!(parser.finish());
|
||||
let o = Output::from_parser_output(toks, p_out);
|
||||
|
||||
// println!("{}", o.debug_colored());
|
||||
println!("{}", o.debug_colored());
|
||||
|
||||
World::new(n);
|
||||
// World::new(n);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue