documenting PLYed parsers

Maurice LING mauriceling at acm.org
Thu Nov 4 00:50:12 CET 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