From 2fa057c5e7ec24949bcb7ed7ffc3e503cba64a3e Mon Sep 17 00:00:00 2001 From: Artemy Date: Sat, 6 Aug 2022 18:24:12 +0300 Subject: [PATCH] doc: move examples to example folder --- README.md | 6 +++--- example.json5 => examples/example.json5 | 0 example.yaml => examples/example.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename example.json5 => examples/example.json5 (100%) rename example.yaml => examples/example.yaml (96%) diff --git a/README.md b/README.md index bf3c594..4d2afb1 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ONLang - Object Notation Language (js`ON`) ## 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 @@ -15,12 +15,12 @@ For writing simple scripts. ## 3. How run scripts 1. Add the executable file to the path variable -2. `on example.json5` +2. `on example/example.json5` or 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 diff --git a/example.json5 b/examples/example.json5 similarity index 100% rename from example.json5 rename to examples/example.json5 diff --git a/example.yaml b/examples/example.yaml similarity index 96% rename from example.yaml rename to examples/example.yaml index ae2854c..b7da6d9 100644 --- a/example.yaml +++ b/examples/example.yaml @@ -22,7 +22,7 @@ - var: i - sleep: 500 - - println: Test + - Test - Input a var - let: name: