doc: move examples to example folder

This commit is contained in:
Artemy 2022-08-06 18:24:12 +03:00
parent 91aec883c8
commit 2fa057c5e7
3 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ ONLang - Object Notation Language (js`ON`)
## 1. God, what the f\*\*\*\* is this ## 1. God, what the f\*\*\*\* is this
ONLang is an experimental, esoteric programming language, that allows you to use **json** for **PROGRAMMING**. The interpreter currently supports only json5 format. ONLang is an experimental, esoteric programming language, that allows you to use (**json or yaml**) for **PROGRAMMING**. The interpreter currently supports only json5 format.
## 2. What is it for ## 2. What is it for
@ -15,12 +15,12 @@ For writing simple scripts.
## 3. How run scripts ## 3. How run scripts
1. Add the executable file to the path variable 1. Add the executable file to the path variable
2. `on example.json5` 2. `on example/example.json5`
or or
1. Clone this repo 1. Clone this repo
2. `cargo run --quiet --release -- example.json5` 2. `cargo run --quiet --release -- example/example.json5`
## 4. How to write in this language ## 4. How to write in this language

View file

@ -22,7 +22,7 @@
- var: i - var: i
- sleep: 500 - sleep: 500
- println: Test - Test
- Input a var - Input a var
- let: - let:
name: name: