dabeaz / ply

Python Lex-Yacc

Home Page:http://www.dabeaz.com/ply/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Whether tok.type can be acquired at parser

95833 opened this issue · comments

commented

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 ?"