|
Hi,
I am reviewing the Pillar PetitParser. Nice work!
I would like to use the AST that comes out of it for creating a highlighter. To this end, I would need the range in the original source of an AST node. For example, to highlight a script, I would need to know where it starts and where it ends. This information is available in the parser, but I noticed that the AST does not preserve the original tokens (or at least the source range).
Is there any reason for it? If no, is there are any plan to add these tokens to the AST?
Cheers,
Doru
--
www.tudorgirba.com
www.feenk.com
"Some battles are better lost than fought."
|