Author 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!
Re:TypeScript to C++
by steerablesafe on Thursday April 02, 2020 @03:41AM
(#22756987)
Notable 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.
yakir22/ts2cpp compile to C++, has GC, FFI and etc. Canvas example: https://github.com/yakir22/ts2cpp/blob/master/TestScripts/Gr...
Re:TypeScript to C++
by steerablesafe on Thursday April 02, 2020 @06:31AM
(#22757648)
I stand corrected. The readme gave the impression of a much less mature project.
* https://github.com/ovr/StaticScript * https://github.com/ts-llvm/ts-llvm * https://github.com/nervosnetwork/minits * https://github.com/andrei-markeev/ts2c * https://github.com/yakir22/ts2cpp * https://github.com/duncanhorn/ts2cpp * https://github.com/sebbekarlsson/typescript * https://github.com/andrejusk/typescript-compiler * https://github.com/sebbekarlsson/tscc
and etc