Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 405 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 405 Bytes

YAPL

Inspired by YAML, Scheme, and TCL.

Based on ulithp.

Converts YAML to s-expressions then evaluates using ulithp.

# 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