mirror of
https://github.com/artegoser/ONLang
synced 2024-12-23 01:23:46 +03:00
33 lines
521 B
YAML
33 lines
521 B
YAML
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
|
|
|
|
- Test
|
|
- Input a var
|
|
- let:
|
|
name:
|
|
input: "Your name: "
|
|
- print:
|
|
- "Bye, "
|
|
- var: name
|
|
- "!"
|