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

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

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -