microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
101.08k stars 12.5k forks source link

Can someone port this to the PHP? #8230

Closed PedroUrday closed 8 years ago

PedroUrday commented 8 years ago

Hello, This is not an issue but a suggestion to make. Can someone port this compiler to the PHP language? PHP language still remains the most widely used in web servers. I would appreciate this very much. Best regards.

mhegazy commented 8 years ago

No. The compiler is written in TypeScript.

sandersn commented 8 years ago

You might be able to use the V8js extension to run the compiler.

PedroUrday commented 8 years ago

ok! thank you sandersn. Another question. If i wish, can i make a compiler, on my own, written in PHP? Does the licence allow this?

mhegazy commented 8 years ago

The language and the tools are all open source. you can find the language spec at: https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md

basarat commented 8 years ago

TypeScript is a Typed superset of JavaScript.

In a similar vein Hack is a typed superset of PHP by facebook that you might find interesting :rose: