Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
README upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
nyzd committed Sep 19, 2023
1 parent 279e752 commit 6eac07c
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@ output:
1
```

# Object
You can define object in Jsl with `object` keyword

example:

```
object {
x = 1
y = 2
}
```

This will push the pointer to the object to stack

also you can get the property of object with `get` keyword like:

```
get x
```

# Let
`let` is like global variables, unlike macros let cant hold expression only holds value `float64`

Expand Down Expand Up @@ -72,9 +92,7 @@ this will return `30`

# Strings
```
import std
str HelloWorld printstr
str HelloWorld put
```
result will be
```
Expand Down Expand Up @@ -151,13 +169,6 @@ fn test -> {
}
```

OR import standard library

```
import std
import math
```

# Resource
Reverse Polish notation. (2023, August 14). In Wikipedia. https://en.wikipedia.org/wiki/Reverse_Polish_notation

Expand Down

0 comments on commit 6eac07c

Please sign in to comment.