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 + - "!"