Chirp is a modern low-level programming language written in C++. Currently the language is still very early and can barely run yet, but I am actively working on the compiler, and hope one day it will be a functioning language.
entry ()
{
# Assign 123 to the variable "a", which is an int
int: a = 123
}
We are using CMake, so building is very easy. Depending on your platform there might be scripts to run the CMake commands for you, but even without the scripts it's very easy.
- any compiler that supports c++11
cmake
3.8.2 or higher
You can build using the build.sh
script
git clone https://github.com/chirp-language/Chirp.git
cd Chirp
sh build.sh
The executable will be created in ./build/src/Chirp
.
There's no scripts for windows, but you can use the CMake gui.
We are rewritting the compiler, and this is what we have done so far:
- Variable declaration
24-07-2019
- Variable definition
25-07-2019
- Math
25-07-2019
- Functions
26-07-2019
- Function calls
27-07-2019
- Inline assembly
28-07-2019
- If statements
- Else statements
- While statements
- For statements
- Imports
- Pointers
- Macros
- Dynamic memory allocation
- IO library
- Math library
- Eve library