mirror of
https://github.com/artegoser/ONLang
synced 2024-12-23 09:33:44 +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 @@
|
||||||
![onlang logo](static/logos/OnLang-transparent.png)
|
![onlang logo](static/logos/OnLang-transparent.png)
|
||||||
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fartegoser%2FONLang.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fartegoser%2FONLang?ref=badge_shield)
|
|
||||||
|
|
||||||
# You may have questions
|
# You may have questions
|
||||||
|
|
||||||
|
@ -15,7 +14,32 @@ For writing simple scripts.
|
||||||
|
|
||||||
## 3. How to write in this language
|
## 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
|
## Installation
|
||||||
|
|
||||||
|
@ -34,6 +58,6 @@ or
|
||||||
|
|
||||||
If you want to help create a pull request
|
If you want to help create a pull request
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fartegoser%2FONLang.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fartegoser%2FONLang?ref=badge_large)
|
|
||||||
|
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fartegoser%2FONLang.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fartegoser%2FONLang?ref=badge_large)
|
||||||
|
|
Loading…
Add table
Reference in a new issue