Skip to content

Commit

Permalink
doc: hello world examples
Browse files Browse the repository at this point in the history
  • Loading branch information
artegoser committed Aug 8, 2022
1 parent 092c5a6 commit fdd7e2a
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
![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

Expand All @@ -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
Expand All @@ -34,6 +58,6 @@ or

If you want to help create a pull request


## 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)

0 comments on commit fdd7e2a

Please sign in to comment.