doc: yaml example

This commit is contained in:
Artemy 2022-08-06 17:19:50 +03:00
parent 774517f4e2
commit 91aec883c8
2 changed files with 41 additions and 8 deletions

View file

@ -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

33
example.yaml Normal file
View file

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