mirror of
https://github.com/artegoser/ONLang
synced 2025-02-22 20:23:13 +03:00
doc: hello world examples
This commit is contained in:
parent
092c5a6a03
commit
fdd7e2abc8
1 changed files with 28 additions and 4 deletions
32
README.md
32
README.md
|
@ -1,5 +1,4 @@
|
|||

|
||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fartegoser%2FONLang?ref=badge_shield)
|
||||
|
||||
# You may have questions
|
||||
|
||||
|
@ -15,7 +14,32 @@ For writing simple scripts.
|
|||
|
||||
## 3. How to write in this language
|
||||
|
||||
[Documentation](doc/main.md)
|
||||
Variants of the "Hello World!"
|
||||
|
||||
on json5
|
||||
|
||||
```json5
|
||||
[
|
||||
"Hello world!",
|
||||
["Hello", " world!" ]
|
||||
{println:"Hello world!"},
|
||||
{println:["Hello world!"]},
|
||||
]
|
||||
```
|
||||
|
||||
on yaml
|
||||
|
||||
```yaml
|
||||
main:
|
||||
- Hello world!
|
||||
- - Hello
|
||||
- " world!"
|
||||
- println: Hello world!
|
||||
- println:
|
||||
- Hello world!
|
||||
```
|
||||
|
||||
Check the [Documentation](doc/main.md)
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -34,6 +58,6 @@ or
|
|||
|
||||
If you want to help create a pull request
|
||||
|
||||
|
||||
## License
|
||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fartegoser%2FONLang?ref=badge_large)
|
||||
|
||||
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fartegoser%2FONLang?ref=badge_large)
|
||||
|
|
Loading…
Add table
Reference in a new issue