Skip to content

Commit

Permalink
Write more tests and fix small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PakhomovAlexander committed Sep 23, 2024
1 parent b3d8d63 commit 6e3e09c
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 156 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edition = "2021"

[dependencies]
nom = "7"
pretty_assertions = "1.4.1"

[dev-dependencies]
rstest = "0.9.0"
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ mod parser;

fn main() {
print!("{}", 1);
parser::lexer::Lexer::new("SELECT * FROM table;").for_each(|token| {
println!("{:?}", token);
});
}
Loading

0 comments on commit 6e3e09c

Please sign in to comment.