|
%!s(int64=7) %!d(string=hai) anos | |
---|---|---|
core | %!s(int64=7) %!d(string=hai) anos | |
examples | %!s(int64=7) %!d(string=hai) anos | |
misc | %!s(int64=8) %!d(string=hai) anos | |
shared | %!s(int64=8) %!d(string=hai) anos | |
src | %!s(int64=7) %!d(string=hai) anos | |
.gitignore | %!s(int64=7) %!d(string=hai) anos | |
LICENSE | %!s(int64=8) %!d(string=hai) anos | |
Makefile | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=7) %!d(string=hai) anos | |
build.bat | %!s(int64=7) %!d(string=hai) anos | |
build.sh | %!s(int64=7) %!d(string=hai) anos |
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/
import "core:fmt.odin"
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
Not in any particular order and not be implemented