-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor Lexer to use errors instead of Exceptions to be more descritive
- Loading branch information
Showing
22 changed files
with
822 additions
and
812 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
from norminette.lexer.lexer import Lexer | ||
from norminette.lexer.lexer import TokenError | ||
from norminette.lexer.tokens import Token | ||
|
||
__all__ = ["Lexer", "TokenError", "Token"] | ||
__all__ = ["Lexer", "Token"] |
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 |
---|---|---|
|
@@ -108,6 +108,7 @@ | |
">>": "RIGHT_SHIFT", | ||
"<<": "LEFT_SHIFT", | ||
"?": "TERN_CONDITION", | ||
"#": "HASH", | ||
} | ||
|
||
brackets = { | ||
|
Oops, something went wrong.