Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jakeroggenbuck/f09f-rs
pronounced fonf; is a statically typed language with simple but powerful syntax, and an interpreter written in rust
https://github.com/jakeroggenbuck/f09f-rs
language rust syntax
Last synced: 5 days ago
JSON representation
pronounced fonf; is a statically typed language with simple but powerful syntax, and an interpreter written in rust
- Host: GitHub
- URL: https://github.com/jakeroggenbuck/f09f-rs
- Owner: JakeRoggenbuck
- License: mit
- Created: 2021-04-22T06:52:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-22T02:41:11.000Z (about 3 years ago)
- Last Synced: 2023-03-03T22:23:27.921Z (over 1 year ago)
- Topics: language, rust, syntax
- Language: Rust
- Homepage:
- Size: 70.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# f09f-rs ![Rust](https://img.shields.io/github/workflow/status/jakeroggenbuck/f09f-rs/Rust?style=for-the-badge)
pronounced fonf; is a statically typed language with simple but powerful syntax, and an interpreter written in rust# Install
```
git clone https://github.com/JakeRoggenbuck/f09f-rs
cargo install --path f09f-rs
```# Usage
| Shorthand | Flag | Description |
|-----------|-------------|------------------------------------------------------------|
| -v | | Verbose output of tokens |## Syntax
### Vars
```rb
int fact = 0;
prec dec = 0.2;
string this = "a string";
bool is_it = true;
```### Functions
```rb
fun square(int n) returns int {
~ Return the square of n ~
return n ^ n;
}
```### Control flow
```rb
if (n == 0) { n = 1; }if (this and not that) {
x = 1;
}if (this or that) {
x = 1;
}if (this) {
that = false;
} else {
that = true;
}
```