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
Post a Comment