✨
This commit is contained in:
14
README.md
14
README.md
@@ -1,5 +1,5 @@
|
||||
# About
|
||||
`CENTURION` is the programming language for the modern roman.
|
||||
`CENTVRION` is the programming language for the modern roman.
|
||||
|
||||
# Documentation
|
||||
|
||||
@@ -57,7 +57,7 @@ Variable can consist of lower-case letters, numbers, as well as `_`.
|
||||
|
||||
## Data types
|
||||
### NULLUS
|
||||
`NULLUS` is a special kind of data type in `CENTURION`, similar to the `null` value in many other languages. `NULLUS` can be 0 if evaluated as an int or float, or an empty string if evaluated as a string. `NULLUS` cannot be evaluated as a boolean.
|
||||
`NULLUS` is a special kind of data type in `CENTVRION`, similar to the `null` value in many other languages. `NULLUS` can be 0 if evaluated as an int or float, or an empty string if evaluated as a string. `NULLUS` cannot be evaluated as a boolean.
|
||||
|
||||
### Strings
|
||||
|
||||
@@ -82,7 +82,7 @@ Integers must be written in roman numerals using the following symbols:
|
||||
|
||||
Each of the symbols written by themself is equal to the value of the symbol. Different symbols written from largest to smallest are equal to the sum of the symbols. Two to three of the same symbol written consecutively is equal to the sum of those symbols (only true for `I`s, `X`s, `C`s or `M`s ). A single `I` written before a `V` or `X` is equal to 1 less than the value of the second symbol. Similarly, an `X` written before a `L` or `C` is 10 less than the second symbol, and a `C` written before a `D` or `M` is 100 less than the second symbol.
|
||||
|
||||
Because of the restrictions of roman numerals, numbers above 3.999 are impossible to write in the base `CENTURION` syntax. If numbers of that size are required, see the `MAGNUM` module.
|
||||
Because of the restrictions of roman numerals, numbers above 3.999 are impossible to write in the base `CENTVRION` syntax. If numbers of that size are required, see the `MAGNUM` module.
|
||||
|
||||
The number 0 can be expressed with the keyword `NULLUS`.
|
||||
|
||||
@@ -90,7 +90,7 @@ The number 0 can be expressed with the keyword `NULLUS`.
|
||||
Negative numbers can be expressed as `NULLUS` minus the value. For an explicit definition of negative numbers, see the `SUBNULLA` module.
|
||||
|
||||
### Floats
|
||||
The base `CENTURION` syntax does not allow for floats. However, the `FRACTIO` module adds a syntax for fractions.
|
||||
The base `CENTVRION` syntax does not allow for floats. However, the `FRACTIO` module adds a syntax for fractions.
|
||||
|
||||
### Booleans
|
||||
Booleans are denoted with the keywords `VERITAS` for true and `FALSITAS` for false.
|
||||
@@ -227,18 +227,18 @@ DICE (INVOCA square XI)
|
||||
### LONGITUDO
|
||||
|
||||
## Modules
|
||||
Modules are additions to the base `CENTURION` syntax. They add or change certain features. Modules are included in your code by having
|
||||
Modules are additions to the base `CENTVRION` syntax. They add or change certain features. Modules are included in your code by having
|
||||
|
||||
```VOCA %MODULE NAME%```
|
||||
|
||||
In the beginning of your source file.
|
||||
|
||||
Unlike many other programming languages with modules, the modules in `CENTURION` are not libraries that can be "imported" from other scripts written in the language. They are features of the compiler, disabled by default.
|
||||
Unlike many other programming languages with modules, the modules in `CENTVRION` are not libraries that can be "imported" from other scripts written in the language. They are features of the compiler, disabled by default.
|
||||
|
||||
### FORS
|
||||
```VOCA FORS```
|
||||
|
||||
The `FORS` module allows you to add randomness to your `CENTURION` program. It adds 2 new built-in functions: `FORTIS_NUMERUS int int` and `FORTIS_ELECTIONIS ['a]`.
|
||||
The `FORS` module allows you to add randomness to your `CENTVRION` program. It adds 2 new built-in functions: `FORTIS_NUMERUS int int` and `FORTIS_ELECTIONIS ['a]`.
|
||||
|
||||
`FORTIS_NUMERUS int int` picks a random int in the (inclusive) range of the two given ints.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user