vehre / aspa_cscc

Convert ASP pages to "pure" html/JS/PHP pages. Based on ASPA with conversion of client side VBscript to Javascript
Other
5 stars 1 forks source link

fix line/column number output and add filename to tree #25

Open jhiswin opened 10 years ago

jhiswin commented 10 years ago

aspa doesn't currently attach the line/col number properly to the tree. It's always 0. Filename should also be attached to the tree.

Useful links: http://stackoverflow.com/questions/9954882/antlr-preserve-line-number-and-position-in-tree-grammar http://stackoverflow.com/questions/19787204/antlr-getting-the-line-number-in-the-parservisitor

vehre commented 10 years ago

Unfortunately, both solutions do not work here, because they are not available in antlr 2 or not at all available in a tree grammar, but only in the token-stream to ast conversion, i.e., a regular grammar.