Skip to content

Commit

Permalink
stop spamming from ast-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzcreek committed Jul 27, 2024
1 parent 0a4dd28 commit 2d1e3bc
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions crates/xtask-gen-ast/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,21 +261,14 @@ fn generate_syntax() -> Result<()> {
let mut grammar_str = include_str!("../../frontend/src/syntax/nodes.ungram").to_string();
normalize_newlines(&mut grammar_str);
let grammar = Grammar::from_str(&grammar_str).unwrap();
println!("{:#?}", grammar);

let ast = lower(&grammar);

println!("{:#?}", ast);

let src = generate_nodes(&ast)?;

let nodes_path = project_root()
.join("crates")
.join("frontend")
.join("src")
.join("syntax")
.join("nodes.rs");

let mut file: File = File::create(nodes_path)?;
write!(file, "{}", src)?;
Ok(())
Expand Down

0 comments on commit 2d1e3bc

Please sign in to comment.