Getting Started
"C3 is a programming language that builds on the syntax and semantics of the C language, with the goal of evolving it while still retaining familiarity for C programmers."
About this book
This is being written with 0.6.x in mind. It may include nightly releases that have fixed problems with 0.6.2. If an example doesn't quite work with 0.6.2, try using the latest compiler.
This was inspired by the Zig Cookbook which displays common and more idiomatic ways to use Zig around certain problems. I wanted to create a community driven book, that would do the same for C3. I believe it is something that can help developers pickup C3, as it provides another source to browse.
I have used new languages where documentation and community driven media was scarce, which made it very hard to get an understanding of the language in a more practical manner. Hopefully this book can help with this issue and get some more people into C3.
Since I'm writing this as a newbie to C3, there are bound to be issues or better ways to achieve things.
Contributing to the book
- Found a typo or an example does not work? Create an issue
- Want to add more examples? Create a fork
Installing C3
Use one of the following sources to download or build the C3 compiler from source:
- Website
- Github Release
- More options on their Github page, to build from source or use an OS repository
Editors / Tooling
There is a work in progress LSP that can be found here.
- VSCode extension can be installed through the extension tab
- VIM / Emacs / Sublime / Zed / ... are located in a single repository