gao
所属分类:编译器/解释器
开发工具:Rust
文件大小:18KB
下载次数:0
上传日期:2021-08-19 02:55:03
上 传 者:
sh-1993
说明: Gao编程语言
(The Gao programming language)
文件列表:
Cargo.toml (448, 2021-08-19)
LICENSE (1067, 2021-08-19)
examples (0, 2021-08-19)
examples\control.gao (119, 2021-08-19)
examples\expr.gao (60, 2021-08-19)
examples\expr1.gao (207, 2021-08-19)
examples\sample0.gao (361, 2021-08-19)
examples\sample1.gao (180, 2021-08-19)
spec (0, 2021-08-19)
spec\Gao.g4 (1239, 2021-08-19)
src (0, 2021-08-19)
src\ast.rs (2668, 2021-08-19)
src\core.rs (559, 2021-08-19)
src\gen.rs (9194, 2021-08-19)
src\ir.rs (794, 2021-08-19)
src\jit.rs (1930, 2021-08-19)
src\lexer.rs (11071, 2021-08-19)
src\main.rs (3583, 2021-08-19)
src\parser.rs (15811, 2021-08-19)
src\semantic.rs (529, 2021-08-19)
src\token.rs (2359, 2021-08-19)
# .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;
}
```
近期下载者:
相关文件:
收藏者: