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 111 forks source link

CoffeeScript compiler statically compiled #61

Open steida opened 12 years ago

steida commented 12 years ago

It would be nice to have CoffeeScript compiler statically compiled. Closure compiler checks syntax, variable references, and types, and warns about common JavaScript pitfalls with unbeatable level of compression. It's easily possible with Google Closure type annotations and github.com/Steida/este dev stack. You can even run your tests on source file change and see results immediately in console.

I'm just curious what is your opinion.

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

sheerun commented 12 years ago

Maybe you could extend syntax to compile to TypeScript and Source Maps to get type information. It's long shot I guess.

Constellation commented 12 years ago

If you're interested in getting stractural type tree, doctrine can parse closure-compiler style type annotation.

TobiaszCudnik commented 11 years ago

Extending the syntax and cross-compiling via TypeScript would be AWESOME. Thats exactly what i've been looking for - neat grammar and powerful control.

pspeter3 commented 10 years ago

The typed coffeescript package links here so does that mean that the compiler can handle optional typing?

vendethiel commented 10 years ago

No.

pspeter3 commented 10 years ago

Sad. Optional typing for CoffeeScript would be amazing

rlidwka commented 10 years ago

The typed coffeescript package links here

It's a mistake. It should be linked here: https://github.com/mizchi/TypedCoffeeScript