btford / astral

AST tooling framework for JavaScript
47 stars 5 forks source link

...Streams? #4

Open btford opened 11 years ago

btford commented 11 years ago

/cc @dominictarr

After much investigation, node streams seem sort of like the right model. I say "sort of" because I just read all the things about them, and worry that this is a solution looking for a problem type deal.

Notes/Observations

dominictarr commented 11 years ago

it might be better to have a pattern that embraced the tree structure of source code, I.e. that of a tree.

I can think of some prior art that is already used to traverse and manipulate trees, https://npmjs.org/package/traverse https://npmjs.org/package/burrito and https://npmjs.org/package/falafel and of course, our old favorite https://github.com/jquery