Browse Source

Add Readme

github-actions
Garrit Franke 3 years ago
parent
commit
96f16f67fa
  1. 30
      README.md
  2. 15
      TODO

30
README.md

@ -0,0 +1,30 @@
# The Sabre Programming language
Sabre is a bullshit-free (©) programming language that gets out of your way.
Is is meant to "just work", without adding unnecessary and bloated language features.
## State of this projects
Basic algorithms like the fibonacci sequence should compile fine. More sophisticated programs will not work yet. See [TODO](./TODO) for a roadmap.
## Examples
```rs
// examples/fib.sb
main :: () {
let num = 10
return fib(num)
}
fib :: (n) {
if n <= 1 {
return n
}
return fib(n-1) + fib(n-2)
}
```
## License
This software is licensed under the [Apache-2.0 license](./LICENSE).

15
TODO

@ -1 +1,14 @@
- Generalize function/if/loop bodies into a "Block" node to remove redundancy # Bugs
- Fix `parser::tests::test_parse_compound_ops_with_identifier_first` test
# Cleanups
- Generalize function/if/loop bodies into a "Block" node to remove redundancy
# Features
- Add else/if else branch to conditionals
- Add while loop
- Add for loop
- Add type system
- Write stdlib with intrinsic functions

Loading…
Cancel
Save