https://github.com/zen0x7/haiku
Service-oriented programming language
https://github.com/zen0x7/haiku
language languages programming-language programming-languages
Last synced: about 1 month ago
JSON representation
Service-oriented programming language
- Host: GitHub
- URL: https://github.com/zen0x7/haiku
- Owner: Zen0x7
- Created: 2021-04-06T17:55:53.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-29T05:34:18.000Z (about 4 years ago)
- Last Synced: 2025-01-18T22:52:09.870Z (about 1 year ago)
- Topics: language, languages, programming-language, programming-languages
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Haiku
##
## Syntax
### Classes and objects
```haiku
use number
class Trick {
public name
constructor name
do() {
using output("This trick is called {name} and have {rate}% of success").with({
name = this.name
rate = number.random(75, 100)
})
}
}
trick = new Trick("*Lean*")
trick.do // "This trick is called *Lean* and have 100% of success"
```
### Class-free objects
#### App.haiku
```haiku
output("We have {connectedUsers} users connected!").with({
connectedUsers = db("devices").where("connected", true).count()
})
```
#### Addons/DB.ha
```haiku
export {
invoke(name) builder(mysql).table(name)
}
```
#### Config/Addons.hc
```haiku
path = "./Addons"
core = Builder MySQL Output
addons = DB
```