removed unused files and made minor fixed to the docs
This commit is contained in:
+2
-4
@@ -16,8 +16,6 @@ A Noja program is a sequence of statements separated by semi-colons (with some e
|
|||||||
|
|
||||||
(You may note that there is no import statement! This is because the ability to import other files is exposed through a built-in function.)
|
(You may note that there is no import statement! This is because the ability to import other files is exposed through a built-in function.)
|
||||||
|
|
||||||
Whitespace doesn't matter.
|
If not in string literals, whitespace doesn't matter.
|
||||||
Comments starts with `#` and end with the line.
|
|
||||||
|
|
||||||
## Notable features
|
Comments starts with `#` and end with the line.
|
||||||
* No exceptions
|
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ fun someFunction(optionalNumber: int | float | None) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Default arguments are evaluated before the type hints, therefore when `none` is provided argument, no error is triggered even when it wasn't allowed as a type if a proper default argument was provided. If the default value doesn't result in a valid type, an error is triggered.
|
Default arguments are evaluated before the type hints, therefore when `none` is provided as argument value, no error is triggered if a proper default argument was specified, even when it wasn't allowed as a type. If the default value doesn't result in a valid type, an error is triggered.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
fun someFunction(a: int = 4) {}
|
fun someFunction(a: int = 4) {}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
ADD
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
0: PUSHLST 4
|
|
||||||
1: PUSHINT 0
|
|
||||||
2: PUSHINT 1
|
|
||||||
3: INSERT
|
|
||||||
4: PUSHINT 1
|
|
||||||
5: PUSHINT 2
|
|
||||||
6: INSERT
|
|
||||||
7: PUSHINT 2
|
|
||||||
8: PUSHINT 3
|
|
||||||
9: INSERT
|
|
||||||
10: PUSHINT 3
|
|
||||||
11: PUSHINT 4
|
|
||||||
12: INSERT
|
|
||||||
13: ASS [l]
|
|
||||||
14: POP 1
|
|
||||||
15: PUSHSTR [ items.
|
|
||||||
]
|
|
||||||
16: PUSHVAR [l]
|
|
||||||
17: PUSHVAR [count]
|
|
||||||
18: CALL 1 1
|
|
||||||
19: PUSHSTR [The list contains ]
|
|
||||||
20: PUSHVAR [print]
|
|
||||||
21: CALL 3 1
|
|
||||||
22: POP 1
|
|
||||||
23: PUSHSTR [.
|
|
||||||
]
|
|
||||||
24: PUSHVAR [l]
|
|
||||||
25: PUSHSTR [The list is: ]
|
|
||||||
26: PUSHVAR [print]
|
|
||||||
27: CALL 3 1
|
|
||||||
28: POP 1
|
|
||||||
29: RETURN 0
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
MUL
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
NOPE
|
|
||||||
Reference in New Issue
Block a user