Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

odin

odin - Programming language

< >

odin is a programming language created in 2016.

#270on PLDB 7Years Old 3.6kUsers
0Books 2Papers 417Repos

Try now: Riju

Odin Programming Language


Example from the web:
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); }
Example from Riju:
package main import "core:fmt" main :: proc() { fmt.printf("Hello, world!\n"); }
Example from hello-world:
package main import "core:fmt" main :: proc() { fmt.println("Hello World"); }

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ fmt.println
Comments ✓
// A comment
Line Comments ✓ //
// A comment
Semantic Indentation X

Publications about odin from Semantic Scholar

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
csp.html · odin.html · flatbuffers.html

View source

- Build the next great programming language · Search · Day 212 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com