Our great sponsors
-
-
carbon-lang
Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
Not a bad idea and not new either. The Nim compiler generates C code and compiles that in the background. Not strictly a transpiler, but similar in principle. Google's Carbon I think is currently as a C++ transpiler - at least I read that somewhere, someone please correct me.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
Nim
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
Not a bad idea and not new either. The Nim compiler generates C code and compiles that in the background. Not strictly a transpiler, but similar in principle. Google's Carbon I think is currently as a C++ transpiler - at least I read that somewhere, someone please correct me.
-
Have a look in my C23 transpiler. https://github.com/thradams/cake
-
My Oberon compiler (https://github.com/rochus-keller/Oberon) does exactly that. But the C transpiler is only used when development and debugging are done, because debugging based on the generated C code makes everything much more complicated and platform dependent. Instead my compiler also generates CLI IL so I can use the excellent, lean, and cross-platform Mono engine integrated with my IDE re-using the Mono performance and debugging features; this is transparent to the developer; just in the end he/she generates (platform independent) C code and compiles it using e.g. GCC, CLANG or MSVC.
-
Currently, it does not make any difference whether this is one token or more because it is sent to the compiler exactly the same as it came in, but you could write a macro/plugin (src/macros/] that recognized this pattern and inserted a space right before the minus “-” sign.