pitusya

所属分类:编程语言基础
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2023-07-31 09:58:50
上 传 者sh-1993
说明:  Pitusya编程语言,
(The Pitusya Programming Language,)

文件列表:
Cargo.lock (10272, 2023-09-18)
Cargo.toml (376, 2023-09-18)
LICENSE (1050, 2023-09-18)
pitusya.pt (116, 2023-09-18)
rustfmt.toml (242, 2023-09-18)
src/ (0, 2023-09-18)
src/ast.rs (780, 2023-09-18)
src/ast/ (0, 2023-09-18)
src/ast/parser.rs (6983, 2023-09-18)
src/codegen.rs (8727, 2023-09-18)
src/codegen/ (0, 2023-09-18)
src/codegen/bindings.rs (12560, 2023-09-18)
src/codegen/var.rs (256, 2023-09-18)
src/input.rs (2112, 2023-09-18)
src/lexer.rs (2173, 2023-09-18)
src/lexer/ (0, 2023-09-18)
src/lexer/tokens.rs (3438, 2023-09-18)
src/lib.rs (4743, 2023-09-18)
src/main.rs (737, 2023-09-18)
src/pass.rs (1651, 2023-09-18)

# The Pitusya Programming Language

(=^ω^=)

## Overview The language with no superpowers (no standard library, only one type - a 64 bit width floating point number). Edit: Standard library has beed added ## Syntax ```pitusya fn slow_inverse_square_root(x) { ret 1 / x * x } fn loops_are_working() { let a = 0.0 while a < 100 { a = a + 1 if a == 44 { ret a } } ret 0 } fn main() { ret loops_are_working() } ``` A bit complicated example: ```pitusya extern print(n) fn complex(a, b, c) { ret a * b / (c * a) + (c / 8) * (a * a) } fn main() { let a = 11 let b = 15 let c = a = b = 10000 print(complex(a, b, c)) ret 0 } ``` # Installation ## Prerequisites 1. LLVM-16 and Clang installed 2. Rustup installed ## Manual building Manual building is more prefereable since intalls the latest version ```shell $ git clone https://github.com/Jujumba/pitusya $ cargo install --path pitusya # Great! Pitusya is installed now ``` ## Via Cargo ```shell $ cargo install pitusya ```

近期下载者

相关文件


收藏者