documenting PLYed parsers

Maurice LING mauriceling at acm.org
Wed Nov 3 18:50:12 EST 2004


Hi,

I am using PLY (Python-Lex-Yacc) to write my parsers. However, it seems 
to me that PLY is using comments (especially multiline comments) in the 
Yacc component such as

def p_expression(p):
'''expression : term PLUS term'''
...

So I was thinking about how can I document my codes, which can be 
processed by epydoc or happydoc? Will my comments, enclosed by ''', 
interferes with PLY?

Any comments?

Thanks
Maurice



More information about the Python-list mailing list