Skip to content

Commit

Permalink
Improve bad_strs example
Browse files Browse the repository at this point in the history
  • Loading branch information
maxslarsson committed May 28, 2022
1 parent 2cf08b0 commit ddee899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/bad_strs.fl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
x = "
y = "\w"
z = "\x3 ninety \u38"
z = "\x3 ninety"
w = "\x3 ninety \u38"
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mod lexer;
mod program;

fn main() {
let program = Program::from_file("examples/bad.fl");
let program = Program::from_file("examples/bad_strs.fl");
for token in program.tokens() {
match token {
Ok(t) => println!("{:?}", t),
Expand Down

0 comments on commit ddee899

Please sign in to comment.