mirror of
https://github.com/artegoser/ONLang
synced 2024-12-23 09:33:44 +03:00
doc: scopes, update and publish version
This commit is contained in:
parent
d11d174cfa
commit
31557d6805
4 changed files with 21 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -197,7 +197,7 @@ checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "onlang"
|
name = "onlang"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"colored",
|
"colored",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "onlang"
|
name = "onlang"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["artegoser"]
|
authors = ["artegoser"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -152,3 +152,11 @@ works only with numbers (and variables with number type)
|
||||||
{ delete: "name" }, //deletes variable from memory
|
{ delete: "name" }, //deletes variable from memory
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Create scope
|
||||||
|
|
||||||
|
```json5
|
||||||
|
[
|
||||||
|
{scope:[..commands]}
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
|
@ -245,6 +245,17 @@
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"\n\nCheck scopes of visibility",
|
||||||
|
{
|
||||||
|
scope: [
|
||||||
|
{ let: { scoped: "Value" } },
|
||||||
|
["scoped = ", { var: "scoped" }],
|
||||||
|
['isExist("scoped"): ', { isExist: "scoped" }],
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"After scope",
|
||||||
|
['isExist("scoped"): ', { isExist: "scoped" }],
|
||||||
|
|
||||||
"\nInput a var",
|
"\nInput a var",
|
||||||
{
|
{
|
||||||
let: {
|
let: {
|
||||||
|
|
Loading…
Add table
Reference in a new issue