Skip to content

Commit

Permalink
lexer refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgabrieloliveira committed Aug 28, 2024
1 parent 304098b commit 8e51a2b
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 388 deletions.
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[package]
name = "lox"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.5.4", features = ["derive"] }
[package]
name = "lox"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
clap = { version = "4.5.4", features = ["derive"] }
12 changes: 3 additions & 9 deletions example.lox
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
var i = 0;
var first_name = "popo";
var last_name = "kitas";

if (true) {
while (true) {
i;
}
}

print i;
print "End";
print first_name + last_name;
Loading

0 comments on commit 8e51a2b

Please sign in to comment.