Compiler for the C3 language
C3 is a C-like language trying to be "an incremental improvement over C" rather than a whole new language. C3 owes a lot to the ideas of the C2 language: to iterate on top of C without trying to be a whole new language.
C3 tries to be an alternative in the the C/C++ niche: fast and close to the metal.
module hello_world; import std::io;func void main() { io::printf("Hello, world!\n"); }
It's possible to try out the current C3 compiler in the browser: https://ide.judge0.com/?1EFo – this is courtesy of the developer of Judge0.
Design work is still being done in the design draft here: https://c3lang.github.io/c3docs/. If you have any suggestions, send a mail to [email protected], file an issue or discuss C3 on its dedicated Discord: https://discord.gg/qN76R87 you are also welcome to discuss in the C3 channel on the r/ProgrammingLanguages Discord: https://discord.gg/cfu4wdk
if/ternary
$unreachable
$assert
assert
extern
tryfor conditional execution
catchfor error handling
catch
sizeof
typeof
nextstatement
global/
sharedfor globals
{ [1..2] = 2 }
asmsection
$switch
$for
int[*]