amr-lang 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/package.json +1 -1
- package/src/lexer.ts +2 -2
package/README.md
CHANGED
|
@@ -104,9 +104,9 @@ when age > 21 {
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
# Arabic version
|
|
107
|
-
|
|
107
|
+
لو age > 17 {
|
|
108
108
|
اطبع 1
|
|
109
|
-
}
|
|
109
|
+
} لولا {
|
|
110
110
|
اطبع 0
|
|
111
111
|
}
|
|
112
112
|
```
|
|
@@ -149,8 +149,8 @@ show 10 # Inline comment
|
|
|
149
149
|
- `اطبع` - Print output (show)
|
|
150
150
|
- `اعمل` - Function declaration (make)
|
|
151
151
|
- `رجع` - Return from function (return)
|
|
152
|
-
-
|
|
153
|
-
-
|
|
152
|
+
- `لو` - If statement (when)
|
|
153
|
+
- `لولا` - Else statement (otherwise)
|
|
154
154
|
- `كرر` - While loop (loop)
|
|
155
155
|
|
|
156
156
|
## Example Programs
|
package/package.json
CHANGED