Python and PLY: how to get rid of token 'XXX', defined but not used -


i'm using python , ply. i'm ignoring comments rule:

    def t_any_comment(self, t):     r'//.*$'     pass 

it works fine, warning:

warning: token 'comment' defined, not used

i'd rid of warning. don't see in ply documentation suggest case.

in case solution not add comment tokens variable. had thought had add tokens there. turns out, it's ones used yacc portion. makes sense, doc didn't come out , that.


Comments

Popular posts from this blog

javascript - Hide toolbar of pdf file opened inside iframe using firefox -

Ansible - ERROR! the field 'hosts' is required but was not set -

Copy range with conditional formatting -