Mamba

Logo

Documentation of the Mamba Language

View the Project on GitHub JSAbrahams/mamba_doc

🏠 Home

3 📚 Specification

3.3 Special Characters and Symbols

The following is a list of characters in the language

Brackets

Keyword Use
( Denote start of tuple elements or function arguments
) Denote end of tuple elements or function arguments
{ Denote start of set, set constructor, or map
} Denote end of set, set constructor, or map
[ Denote start of list, or opening bracket of generics of a class
] Denote end of list, or closing bracket of generics of a class

Mathematical Operators

Keyword Use
* Multiply operator
^ Power operator
- Minus operator
+ Plus operator
/ Division operator

Boolean Operators

Keyword Use
> Greater than operator
>= Greater than or equal to operator
< Less than operator
<= Less than or equal to operator
= Structurally equal
/= Structurally not equal

Assignment and Functions

Keyword Use
<- Assign to definition
-> Used in signature of method or signature
=> Denote the start of the body of a function or method
: Specify type of identifier
. Precedes method call, or fractional digits of real number
, Separates arguments in collections or function or method signatures
_ Anonymous value

Context Dependent

Keyword Use
e If nested between two integer, or an integer and a real, denotes e-number
E If nested between two integer, or an integer and a real, denotes e-number

Other Operators

Keyword Use
.. Exclusive range
..= Inclusive range

Comments

Keyword Use
# Start of a comment
## Start and end of comment block