Top 1,000 Features Creators Events Podcasts Extensions Blog Explorer CSV Download

odin

< >

odin is a programming language created in 2016.

#108on PLDB 8Years Old 417Repos
Download source code:
git clone https://github.com/odin-lang/Odin

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

View source

- Build the next great programming language ยท About ยท Resources ยท Acknowledgements ยท Part of the World Wide Scroll