mirror of
https://github.com/artegoser/ONLang
synced 2024-11-05 20:43:57 +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]]
|
||||
name = "onlang"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
dependencies = [
|
||||
"clap",
|
||||
"colored",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "onlang"
|
||||
version = "0.1.0"
|
||||
version = "0.2.0"
|
||||
edition = "2021"
|
||||
authors = ["artegoser"]
|
||||
license = "MIT"
|
||||
|
|
|
@ -152,3 +152,11 @@ works only with numbers (and variables with number type)
|
|||
{ 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",
|
||||
{
|
||||
let: {
|
||||
|
|
Loading…
Reference in a new issue