Python parser that records source ranges

Jonathan Edwards edwards at nospam.lcs.mit.edu
Sun Sep 28 20:16:23 EDT 2003


The parser library module only records source line numbers for tokens. I 
need a parser that records ranges of line and character locations for 
each AST node, so I can map back to the source. Does anyone know of such 
a thing? Thanks

Jonathan





More information about the Python-list mailing list