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 # TODO CONCEPTS
1. Functions - [ ] Functions
2. imports - [ ] imports
3. scopes of visibility - [ ] scopes of visibility
4. parallel tasks `{parallel:[..tasks]}` - [ ] parallel tasks `{parallel:[..tasks]}`
5. types conversion - [ ] types conversion
6. methods for arrays - [ ] methods for arrays
7. writing objects to a variable - [ ] writing objects to a variable
8. yaml support? - [x] yaml support?
and something else 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
- "!"