Is there an interface to the parser, that instead of returning a syntax tree object, one can pass in an object, or function, that can receiving parsing events?
I would like to do some checks on Identifier names, but it would be nice to avoid having to load a complete syntax tree into memory to do this.
An analogy would be XML parsers, where there is a SAX interface that provides lower level parsing events of the document, allowing one to perform less memory intensive parsing tasks without creating an entire parsed tree structure (i.e. the DOM) into memory.
Thanks,
--ewh