Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmarekspartz/yapl
YAml Programming Language
https://github.com/kmarekspartz/yapl
Last synced: 13 days ago
JSON representation
YAml Programming Language
- Host: GitHub
- URL: https://github.com/kmarekspartz/yapl
- Owner: kmarekspartz
- License: mit
- Created: 2017-09-15T22:16:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T17:36:29.000Z (about 5 years ago)
- Last Synced: 2024-08-01T22:57:43.974Z (3 months ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 8
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# YAPL
Inspired by [YAML](http://yaml.org), Scheme, and [TCL](https://www.tcl.tk/).
Based on [ulithp](http://fogus.github.io/ulithp/).
Converts YAML to s-expressions then evaluates using ulithp.
```yaml
# example.yaml
- define:
max:
- [a, b]
- if: [gt: [a, b], a, b]
a: 42
b: 46
- max: [a, b]
```## Run it
ruby interpreter.rb example.yaml
## Test it
ruby test.rb