Var b = function(a1:number,b:number):number.function How to use the online translator Some supported features atan(a)%3B%5Cn%5Ct%7D%5Cn%5Ct%7D%5Cn%7D%22%2C%22inputLang%22%3A%22java%22%2C%22outputLang%22%3A%22c%23%22%7D) is written in JavaScript, but an experimental version is also being written in Prolog.Ī major goal of this project is to translate TypeScript and JavaScript to other languages that compile to C or native code.įor example, it's possible to translate a subset of TypeScript to Zig%3Anumber%7B%5Cnreturn%20a%20%2B%20b%3B%5Cn%7D%3B%22%2C%22inputLang%22%3A%22typescript%22%2C%22outputLang%22%3A%22zig%22%7D): The translation is not always 100% accurate, but I hope it will still be useful. Universal-transpiler was written as an experimental "proof-of-concept," so it can only translate relatively simple programs. It is also able to translate several metasyntax notations, such as EBNF and ABNF.
Universal-transpiler is a source-to-source compiler that translates a small subset of several programming languages into several others. A universal translator for programming languages