Skip to content
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

Whether tok.type can be acquired at parser #270

Closed
95833 opened this issue Jun 13, 2022 · 0 comments
Closed

Whether tok.type can be acquired at parser #270

95833 opened this issue Jun 13, 2022 · 0 comments

Comments

@95833
Copy link

95833 commented Jun 13, 2022

from example:

def p_tokens(p):
    """
   token : INT
        | FLOAT
        | AAAA
        | BBBB
    """
    #"Whether p[1] can be distinguished between tok_INT and tok_FLOAT and ...  by using tok.type ?"
@95833 95833 closed this as completed Jun 13, 2022
@95833 95833 changed the title How to Whether tok.type can be acquired at parser Jun 13, 2022
@95833 95833 reopened this Jun 13, 2022
@95833 95833 closed this as completed Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant