aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index 65e6ee9..5334746 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,7 +12,9 @@ use lexer::Lexer;
const SOURCE: &str = r#"
-if 5 >= 7 {
+val variable = 5;
+
+if variable >= 7 {
print "Hello World";
}
@@ -21,6 +23,6 @@ if 5 >= 7 {
fn main() {
let lexer = Lexer::new(SOURCE);
for token in lexer {
- print!("{} ", token.lexeme);
+ print!("({}) ", token.lexeme);
}
}