mirror of
https://github.com/artegoser/ONLang
synced 2024-12-23 01:23:46 +03:00
doc: delete variable
This commit is contained in:
parent
9da82cde2a
commit
c6251e3fb1
2 changed files with 21 additions and 3 deletions
10
ROADMAP.md
10
ROADMAP.md
|
@ -2,8 +2,8 @@
|
|||
|
||||
- [ ] Functions
|
||||
- [ ] imports
|
||||
- [ ] scopes of visibility
|
||||
- [ ] types conversion
|
||||
- [x] scopes of visibility
|
||||
|
||||
- [ ] methods for arrays
|
||||
- [ ] methods for strings
|
||||
- [ ] methods for objects
|
||||
|
@ -11,6 +11,10 @@
|
|||
- [x] yaml support?
|
||||
- [ ] command execution function
|
||||
- [ ] function for random
|
||||
- [ ] delete variable
|
||||
- [x] delete variable
|
||||
- [ ] types conversion
|
||||
- [ ] checking variable type
|
||||
- [ ] checking for the existence of a variable
|
||||
- [ ] create scopes without if, else, loop
|
||||
|
||||
and something else
|
||||
|
|
14
doc/main.md
14
doc/main.md
|
@ -138,3 +138,17 @@ works only with numbers (and variables with number type)
|
|||
{ print: ["Bye, ", { var: "name" }, "!"] },
|
||||
]
|
||||
```
|
||||
|
||||
## Delete variable
|
||||
|
||||
```json5
|
||||
[
|
||||
{
|
||||
let: {
|
||||
name: { input: "Your name: " },
|
||||
},
|
||||
},
|
||||
{ print: ["Bye, ", { var: "name" }, "!"] },
|
||||
{ delete: "name" }, //deletes variable from memory
|
||||
]
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue