Grammar of Expressions#
Operator Precedence#
Function calls
**(power) (right associative)-(unary minus)*,/(multiplication and division)+,-(addition and subtraction)
Rules#
Name |
Rule |
|---|---|
|
Floating-point number or integer (complex numbers in the future) |
|
(See below) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TODO:
--1should be an error.
Identifiers#
Identifiers are used in followings:
Parameter names when used in
atomic_value_expr. Currently onlyxis allowed.Constant names when used in
atomic_value_expr.A parameter name and a constant name cannot have the same identifier.
Function names when used in
function_call_expr.
Identifiers are case-sensitive.
Identifiers must be named as follows:
First character must be a letter (a-z, A-Z) or underscore (_)
Subsequent characters can be letters, digits (0-9), or underscores