Skip to content

Commit

Permalink
chore: source and tokens for reassign program
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddie authored and Eddie committed Jun 3, 2024
1 parent c5530ee commit 8b73bc7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
4 changes: 4 additions & 0 deletions programs/reassign.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
x = 1
x = 2
x = 3
assert equals x 3
27 changes: 27 additions & 0 deletions programs/reassign.tokens
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
1 1 SYMBOL x
1 2 SPACE
1 3 EQUALS
1 4 SPACE
1 5 NUMBER 1
1 6 NEWLINE
2 1 SYMBOL x
2 2 SPACE
2 3 EQUALS
2 4 SPACE
2 5 NUMBER 2
2 6 NEWLINE
3 1 SYMBOL x
3 2 SPACE
3 3 EQUALS
3 4 SPACE
3 5 NUMBER 3
3 6 NEWLINE
4 1 KEYWORD assert
4 7 SPACE
4 8 KEYWORD equals
4 14 SPACE
4 15 SYMBOL x
4 16 SPACE
4 17 NUMBER 3
4 18 NEWLINE
4 19 TERMINAL

0 comments on commit 8b73bc7

Please sign in to comment.