[antlr-interest] Recovering line number in Python-Antlr AST

ZelluX zellux at gmail.com
Sat Jul 31 05:01:26 PDT 2010


Hi, all

I need to recover line numbers of statements when the AST is being
processed, but have no idea of how to. I googled but only found solutions in
Java, not in Python, like this article
http://tech.puredanger.com/2007/02/01/recovering-line-and-column-numbers-in-your-antlr-ast.
Could you please tell me what should I do in Antlr-Python version?
Many
thanks.

-- 
Best regards,
Wang Yuanxuan
Parallel Processing Institute, Fudan University


More information about the antlr-interest mailing list