odin is a programming language created in 2016.
#270on PLDB | 7Years Old | 3.6kUsers |
0Books | 2Papers | 417Repos |
Try now: Riju
Odin Programming Language
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);
}
package main
import "core:fmt"
main :: proc() {
fmt.printf("Hello, world!\n");
}
package main
import "core:fmt"
main :: proc() {
fmt.println("Hello World");
}
Feature | Supported | Token | Example |
---|---|---|---|
Strings | ✓ | " | "Hello world" |
Print() Debugging | ✓ | fmt.println | |
Comments | ✓ | // A comment |
|
Line Comments | ✓ | // | // A comment |
Semantic Indentation | X |
title | authors | year | citations | influentialCitations |
---|---|---|---|---|
Towards programmable enterprise WLANS with Odin | L. Suresh and Julius Schulz-Zander and R. Merz and A. Feldmann and T. Vazão | 2012 | 315 | 35 |
Verilog Loop Unrolling, Module Generation, Part-Select and Arithmetic Right Shift Support in Odin II | Scott Young and Alexandrea Demmings and N. E. Ivari and Jean-Philippe Legault and K. Kent | 2019 | 1 | 0 |