https://github.com/trinnguyen/gao
The Gao programming language
https://github.com/trinnguyen/gao
compiler gao gao-lang llvm rust
Last synced: about 2 months ago
JSON representation
The Gao programming language
- Host: GitHub
- URL: https://github.com/trinnguyen/gao
- Owner: trinnguyen
- License: mit
- Created: 2021-04-16T11:12:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-19T02:55:03.000Z (almost 5 years ago)
- Last Synced: 2025-05-18T10:36:45.733Z (about 1 year ago)
- Topics: compiler, gao, gao-lang, llvm, rust
- Language: Rust
- Homepage:
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# .gao
The Gao programming language
## Getting started
### Hello world
```rust
fn main(): int {
return bar(1);
}
fn test(): int {
let y: bool = false;
let x: int = 101;
y = true;
x = 201;
foo();
bar2(1, false);
return bar(x);
}
fn foo(): bool {
let x: int = 102;
let y: bool = false;
return y;
}
fn bar(a1: int): int {
return 1;
}
fn bar2(a1: int, a2: bool): bool {
return false;
}
```