|
7 years ago | |
---|---|---|
core | 7 years ago | |
examples | 7 years ago | |
misc | 7 years ago | |
src | 7 years ago | |
.gitignore | 7 years ago | |
LICENSE | 8 years ago | |
Makefile | 7 years ago | |
README.md | 7 years ago | |
build.bat | 7 years ago | |
build.sh | 7 years ago |
A fast, concise, readable, pragmatic and open sourced programming language.
The Odin programming language is fast, concise, readable, pragmatic and open sourced. It is designed with the intent of replacing C with the following goals:
Website: https://odin.handmade.network/
package main
import "core:fmt"
main :: proc() {
program := "+ + * 😃 - /";
accumulator := 0;
for token in program {
switch token {
case '+': accumulator += 1;
case '-': accumulator -= 1;
case '*': accumulator *= 2;
case '/': accumulator /= 2;
case '😃': accumulator *= accumulator;
case: // Ignore everything else
}
}
fmt.printf("The program \"%s\" calculates the value %d\n",
program, accumulator);
}
Windows
opt.exe
and llc.exe
vcvarsall.bat
to setup the pathMacOS
brew install llvm
)GNU/Linux