-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Token_Stream class as new lexer and ast_link to every token #61
Add Token_Stream class as new lexer and ast_link to every token #61
Conversation
81060aa
to
48eb6d2
Compare
trlc/trlc.py
Outdated
# for file, parser in sm.all_files.items(): | ||
# for tok in parser.lexer.tokens: | ||
# if tok.value is None: | ||
# token = tok.kind | ||
# else: | ||
# token = tok.value | ||
# print(f"Token: {token} => {tok.ast_link}") | ||
# assert tok.ast_link is not None, \ | ||
# f"Token {tok} in {file} has no ast_link" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove dead code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phiwuu: Thanks for your feedback! It might be better to wait. Reviewing the pull request could become more challenging without these lines. I've referenced them in the pull request description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove now, and merge afterwards.
Hey, I was a bit absent for a while but I will have a look at this soon! |
48eb6d2
to
6b78960
Compare
Infos: