-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Token_Stream class as new lexer and ast_link to every token (#61)
Infos: - I have not considered Markup-Strings yet. They are just normal Strings. - I added string representations for some ast objects to better see how things are connected. - All ast_links are set in the parser except for import statements as their names are resolved in the [ast.py](http://ast.py/). - The import token itself is set to the files own package because it was easier to set the link at the moment the token first appears. The names are resolved after the graph was built and set correctly to their own ast package's object. - Comments are linked to the files main package. I have put that at the end of each file's parsing because comments could appear at the top before the "package ..." clause.
- Loading branch information
1 parent
611172e
commit 26645ea
Showing
4 changed files
with
326 additions
and
63 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
Oops, something went wrong.