https://github.com/cronokirby/iku
WIP programming language
https://github.com/cronokirby/iku
compiler interpreter programming-language
Last synced: 11 months ago
JSON representation
WIP programming language
- Host: GitHub
- URL: https://github.com/cronokirby/iku
- Owner: cronokirby
- Created: 2019-12-30T14:44:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-12T16:08:17.000Z (about 6 years ago)
- Last Synced: 2025-01-28T04:29:10.094Z (about 1 year ago)
- Topics: compiler, interpreter, programming-language
- Language: Rust
- Size: 81.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Iku (行く)
I like some things about go, but not others, and this is kind of my way of fixing those.
## Sample Code
```
// Comments
func foo(a I32, b I32) {
x I32 := 3
y := 3
a + b
}
struct S {
first I32
second I32
}
impl S {
func new(a I32) S {
S { first a, second a }
}
}
enum E {
A(I32)
B
}
func main() {
e1 := E.A(3)
e2 := E.B
s1 := S { first 3, second 4 }
match e1 {
E.A(_) => 4
E.B => s1.second
}
}
```