michaelficarra / CoffeeScriptRedux

:sweat: rewrite of the CoffeeScript compiler with proper compiler design principles and a focus on robustness and extensibility
https://michaelficarra.github.com/CoffeeScriptRedux/
BSD 3-Clause "New" or "Revised" License
1.84k stars 110 forks source link

Any points for beginners about hacking on the project? #176

Closed paulmillr closed 1 year ago

paulmillr commented 11 years ago

I want to try adding some shitty static type checker and learn compilers, but no ideas where to start. I think other folks that want to hack on compiler think similarly.

Would be awesome if there was some simple workflow description.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

michaelficarra commented 11 years ago

This should help a bit, but obviously isn't a contributors' guide: https://speakerdeck.com/michaelficarra/an-analysis-of-the-redesign-of-the-coffeescript-compiler

I'll try to write something up. Maybe a wiki page with pretty pictures and everything.

j1wilmot commented 11 years ago

+1 that would be cool

michaelficarra commented 11 years ago

RE static type checker: see this tweet: https://twitter.com/puffnfresh/status/303961963661254656

I think it's better to create a tool that performs the analysis on the spidermonkey AST and then just map the types back to the CoffeeScript constructs. Then you'll be able to determine static types for any compile-to-JS language.

edit: here's some good resources or starting points: