-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change to everything being identifier based
Now the lexer does not know any numbers and just uses identifiers for everything. This means that the tape can now contain identifiers.
- Loading branch information
1 parent
4892ac7
commit 3afca0c
Showing
5 changed files
with
50 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
enum TokenType { | ||
TOK_EOF = 0, | ||
TOK_IDENTIFIER, | ||
TOK_NUMBER, | ||
TOK_EQUALS, | ||
TOK_COMMA, | ||
TOK_UNDERSCORE, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ struct Tape { | |
Symbol* content; | ||
size_t size; | ||
|
||
char** symbol_names; | ||
|
||
// | ||
|
||
Symbol def; | ||
|