Skip to content

Commit

Permalink
Merge pull request #179 from Glyphack/parse-comprehensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack authored Sep 26, 2023
2 parents af7db4a + 0f805be commit ef6abe7
Show file tree
Hide file tree
Showing 270 changed files with 2,840 additions and 11,973 deletions.
4 changes: 3 additions & 1 deletion enderpy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ fn tokenize(file: &PathBuf) -> Result<()> {
break;
}
}
println!("{:#?}", tokens);
for token in tokens {
println!("{}", token);
}
Ok(())
}

Expand Down
2 changes: 1 addition & 1 deletion parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ miette = "5.6.0"
thiserror = "1.0.40"

[dev-dependencies]
insta = { version = "1.28.0", features = ["yaml"] }
insta = { version = "1.28.0", features = ["yaml", "glob"] }
1 change: 0 additions & 1 deletion parser/src/lexer/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,6 @@ impl Lexer {
return None
}
}
println!("spaces_count: {}", spaces_count);
if let Some(top) = self.indent_stack.last() {
match spaces_count.cmp(top) {
Ordering::Less => Some(Kind::Dedent),
Expand Down
Loading

0 comments on commit ef6abe7

Please sign in to comment.