Issue #13 resolved
hello, i just started playing with PyPEG2, so please bear with me.
from pypeg2 import * F = K('F') T = K('T') fts = maybe_some([F, T]) class Chatty(Concat): grammar = attr('a', fts), attr('b', F) class FTs(List): grammar = fts class Silent(Concat): grammar = attr('x', FTs), attr('y', F)
/usr/local/lib/python2.7/site-packages/pypeg2/__init__.py:131: SyntaxWarning: tuple not recommended as grammar of attribute 'a' + repr(name), SyntaxWarning)
i have a few issues with that:
- the message does not point to the source location. it's easy to derive in this instance (only one
aattribute in the whole file), but that's a special case.
- the message does not tell me why it's bad
- the message does not tell me how to make the tool happy