From 91aec883c80c2edd4073ae89b3a59697cdbc5df8 Mon Sep 17 00:00:00 2001 From: Artemy Date: Sat, 6 Aug 2022 17:19:50 +0300 Subject: [PATCH] doc: yaml example --- ROADMAP.md | 16 ++++++++-------- example.yaml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 example.yaml diff --git a/ROADMAP.md b/ROADMAP.md index 95efd85..34d342a 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,12 +1,12 @@ # TODO CONCEPTS -1. Functions -2. imports -3. scopes of visibility -4. parallel tasks `{parallel:[..tasks]}` -5. types conversion -6. methods for arrays -7. writing objects to a variable -8. yaml support? +- [ ] Functions +- [ ] imports +- [ ] scopes of visibility +- [ ] parallel tasks `{parallel:[..tasks]}` +- [ ] types conversion +- [ ] methods for arrays +- [ ] writing objects to a variable +- [x] yaml support? and something else diff --git a/example.yaml b/example.yaml new file mode 100644 index 0000000..ae2854c --- /dev/null +++ b/example.yaml @@ -0,0 +1,33 @@ +main: + - let: + i: 0 + - loop: + - if: + condition: + comp: + - var: i + - ">=" + - 10 + body: + - "\n" + - break + - assign: + i: + calc: + - var: i + - + + - 1 + - print: + - "\ri = " + - var: i + - sleep: 500 + + - println: Test + - Input a var + - let: + name: + input: "Your name: " + - print: + - "Bye, " + - var: name + - "!"