![](https://secure.gravatar.com/avatar/eb3fe37da4a199eb4e3b479d8a57f808.jpg?s=120&d=mm&r=g)
On Wed, 2006-04-26 at 20:55 -0500, Aaron Spike wrote:
MenTaLguY wrote:
That's something I'd like to mitigate with the "generic AST" architecture I've been playing with for a long time, but we're definitely not there yet.
What's a "generic AST" architecture?
Well, right now we provide only a standard AST representation for XML, but none of the other grammars we have to work with (e.g. CSS).
What I'd like to do is to unify all the AST stuff for XML, CSS, (and possibly SVG paths), perhaps to the point where if you have a style= attribute on an XML node, you could have a CSS syntax tree hanging off it instead of a raw string.
It would make a lot of things a lot easier, but that also requires a lot of careful design so we don't (for example) experience massive memory bloat as a result.
-mental