Skip to content

Commit

Permalink
[#25] New language: Odin
Browse files Browse the repository at this point in the history
  • Loading branch information
raxod502 committed Jul 15, 2021
1 parent a24308f commit 9077154
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions langs/odin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
id: "odin"
name: "Odin"

info:
year: 2016
desc: "Alternative to C with goals of simplicity, high performance, built for modern systems, and joy of programming"
ext:
- odin
web:
home: "https://odin-lang.org/"
source: "https://github.com/odin-lang/Odin"
category: general
mode: compiled
platform: []
syntax: lua
typing: static
paradigm:
- imperative
usage: []

install:
apt:
- libllvm11
manual: |
install -d "${pkg}/opt"
install -d "${pkg}/usr/local/bin"
ver="$(latest_release odin-lang/Odin)"
wget "https://github.com/odin-lang/Odin/releases/download/${ver}/odin-ubuntu-amd64-${ver}.zip" -O odin.zip
unzip odin.zip
mv -T ubuntu_artifacts "${pkg}/opt/odin"
chmod +x "${pkg}/opt/odin/odin"
ln -s /opt/odin/odin "${pkg}/usr/local/bin/"
main: "main.odin"
template: |
package main
import "core:fmt"
main :: proc() {
fmt.printf("Hello, world!\n");
}
compile: |
odin build main.odin
run: |
./main

0 comments on commit 9077154

Please sign in to comment.