mirror of
https://github.com/artegoser/ONLang
synced 2024-11-05 20:43:57 +03:00
doc: yaml example
This commit is contained in:
parent
774517f4e2
commit
91aec883c8
2 changed files with 41 additions and 8 deletions
16
ROADMAP.md
16
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
|
||||
|
|
33
example.yaml
Normal file
33
example.yaml
Normal 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
|
||||
- "!"
|
Loading…
Reference in a new issue