I’m so far still interested in a AS3 parser that parses a single AS3 source and results in an AST. The bestly-implemented so far looks to be the FlexSDK ASC parser, which zwetan linked in my earlier thread.
But since this parser itself isn’t nicely documented, I’ve pre-mature (didn’t use it yet…), but important questions:
- How does it store line info about AST Nodes? E.g., start (index, lineNumber & lineIndex) & end (index, lineNumber & lineIndex), in a way I’m able to know at least the starting or ending column of a single Node?
All I see is the method Node#pos() in Node.java, but it’s not very specific for me (starting or ending pos? And if pos() returns column, then what about lines?).
I need these.