4 ms·
Other TypeScript to C/C++ projects which did a lot more: * https://github.com/ovr/StaticScript https://github.com/ovr/StaticScript * https://github.com/ts-llv
by maxgraey 7y ago
Other TypeScript to C/C++ projects which did a lot more:
* https://github.com/ovr/StaticScript https://github.com/ovr/StaticScript
* https://github.com/ts-llvm/ts-llvm https://github.com/ts-llvm/ts-llvm
* https://github.com/nervosnetwork/minits https://github.com/nervosnetwork/minits
* https://github.com/andrei-markeev/ts2c https://github.com/andrei-markeev/ts2c
* https://github.com/yakir22/ts2cpp https://github.com/yakir22/ts2cpp
* https://github.com/duncanhorn/ts2cpp https://github.com/duncanhorn/ts2cpp
* https://github.com/sebbekarlsson/typescript https://github.com/sebbekarlsson/typescript
* https://github.com/andrejusk/typescript-compiler https://github.com/andrejusk/typescript-compiler
* https://github.com/sebbekarlsson/tscc https://github.com/sebbekarlsson/tscc
and etc
- steerablesafe 7y agoNotable that the first three are TypeScript to LLVM, they are aimed for AOT compilation of TypeScript instead of source translation to C/C++. Together with a good FFI this could work better than source translation. The compilers with C++ target on that list don't "do a lot more". The others are not directly comparable.
- maxgraey 7y agoyakir22/ts2cpp compile to C++, has GC, FFI and etc. Canvas example: https://github.com/yakir22/ts2cpp/blob/master/TestScripts/Graphics.ts https://github.com/yakir22/ts2cpp/blob/master/TestScripts/Gr...
- steerablesafe 7y agoI stand corrected. The readme gave the impression of a much less mature project.
- andrejus 7y agoAuthor of the second to last compiler -- although simple in scope, it was one of the more exciting pieces of our undergrad coursework projects to work through (translating a language into another language). Implementing lexical analysis and parsing manually as opposed to using lex/yacc felt much more valuable to understanding the module, which was very useful for the exam. Definitely recommend the challenge!