https://github.com/moonbarc/fig
The Fig Programming Language
https://github.com/moonbarc/fig
Last synced: about 2 months ago
JSON representation
The Fig Programming Language
- Host: GitHub
- URL: https://github.com/moonbarc/fig
- Owner: MoonBarc
- License: mit
- Created: 2023-11-17T18:11:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-26T16:19:20.000Z (over 1 year ago)
- Last Synced: 2025-02-13T07:37:26.423Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# The Fig Programming Language
> ⚠️ Work in Progress! ⚠️Fig is a compiled, statically-typed, garbage collected and expressive programming language.
## A Taste of Fig
```fig
// for now, the top level of the file is the main functionlet a = 5;
// loop & if are *expressions*!
let thing = if a == 5 {
<- a * 5;
} else {
<- 200;
};let n = 5;
let i = 0;
let other_thing = loop {
if i == n {
break n * i;
}
i = i + 1;
};return thing + other_thing;
```## Todo
- [ ] More Data Types
- [x] Boolean
- [ ] String
- [ ] Float
- [ ] Functions
- [ ] Core Library
- [ ] Garbage Collection
- [ ] Remove semicolons