🐐 Fixing latin
This commit is contained in:
28
README.md
28
README.md
@@ -171,19 +171,19 @@ Will return `I` (1), as the conditional evaluates `x` to be true.
|
||||
### Boolean expressions
|
||||
In conditionals, `EST` functions as an equality evaluation, `DISPAR` as not-equal, and `MINVS` (<) and `PLVS` (>) function as inequality evaluation.
|
||||
|
||||
### ALVID
|
||||
### ALIVD
|
||||
|
||||
When using `SI`/`TVNC` statements, you can also use `ALVID` as an "else".
|
||||
When using `SI`/`TVNC` statements, you can also use `ALIVD` as an "else".
|
||||
|
||||

|
||||

|
||||
|
||||
```
|
||||
> I
|
||||
```
|
||||
|
||||
`SI` statements may follow immediately after `ALVID`.
|
||||
`SI` statements may follow immediately after `ALIVD`.
|
||||
|
||||

|
||||

|
||||
|
||||
```
|
||||
> II
|
||||
@@ -218,8 +218,8 @@ The keyword `ET` can be used as a boolean "and". The keyword `AVT` can be used a
|
||||
|
||||
### AETERNVM loops
|
||||
|
||||
`AETERNVM FACE { ... }` is shorthand for an infinite loop — equivalent
|
||||
to `DVM FALSITAS FACE { ... }` but without relying on `DVM`'s inverted
|
||||
`AETERNVM FAC { ... }` is shorthand for an infinite loop — equivalent
|
||||
to `DVM FALSITAS FAC { ... }` but without relying on `DVM`'s inverted
|
||||
condition. Exit the loop with `ERVMPE` (or `REDI` from inside a function).
|
||||
|
||||

|
||||
@@ -248,7 +248,7 @@ Errors can be caught using `TEMPTA` (temptare = to try) and `CAPE` (capere = to
|
||||
TEMPTA {
|
||||
DESIGNA x VT I / NVLLVS
|
||||
} CAPE error {
|
||||
DICE(error)
|
||||
DIC(error)
|
||||
}
|
||||
```
|
||||
|
||||
@@ -292,12 +292,12 @@ Anonymous functions are created with the `FVNCTIO` keyword:
|
||||
Note: CENTVRION does **not** have closures. When a function is called, it receives a copy of the *caller's* scope, not the scope where it was defined. Variables from a function's definition site are only available if they also exist in the caller's scope at call time.
|
||||
|
||||
## Built-ins
|
||||
### DICE
|
||||
`DICE(value, ...)`
|
||||
### DIC
|
||||
`DIC(value, ...)`
|
||||
|
||||
Prints one or more values to stdout, space-separated, with integers rendered as Roman numerals. Returns the printed string.
|
||||
|
||||

|
||||

|
||||
|
||||
### AVDI
|
||||
`AVDI()`
|
||||
@@ -361,11 +361,11 @@ Vnlike many other programming languages with modules, the modules in `CENTVRION`
|
||||
### FORS
|
||||

|
||||
|
||||
The `FORS` module allows you to add randomness to your `CENTVRION` program. It adds 4 new built-in functions: `FORTIS_NVMERVS int int`, `FORTIS_ELECTIONIS ['a]`, `DECIMATIO ['a]`, and `SEMEN int`.
|
||||
The `FORS` module allows you to add randomness to your `CENTVRION` program. It adds 4 new built-in functions: `FORTVITVS_NVMERVS int int`, `FORTVITA_ELECTIO ['a]`, `DECIMATIO ['a]`, and `SEMEN int`.
|
||||
|
||||
`FORTIS_NVMERVS int int` picks a random int in the (inclusive) range of the two given ints.
|
||||
`FORTVITVS_NVMERVS int int` picks a random int in the (inclusive) range of the two given ints.
|
||||
|
||||
`FORTIS_ELECTIONIS ['a]` picks a random element from the given array. `FORTIS_ELECTIONIS array` is identical to ```array[FORTIS_NVMERVS NVLLVS ((LONGITVDO array)-I)]```.
|
||||
`FORTVITA_ELECTIO ['a]` picks a random element from the given array. `FORTVITA_ELECTIO array` is identical to ```array[FORTVITVS_NVMERVS NVLLVS ((LONGITVDO array)-I)]```.
|
||||
|
||||
`DECIMATIO ['a]` returns a copy of the given array with a random tenth of its elements removed. Arrays with fewer than 10 elements are returned unchanged.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user