yogstation/code/modules/scripting/AST/ast_nodes.dm
OOP_ASSIGN | An abstract syntax tree (AST) is a representation of source code in a computer-friendly format. It is composed of nodes,
each of which represents a certain part of the source code. For example, an |
---|---|
OOP_OR | Logical or || |
OOP_AND | Logical and && |
OOP_BIT | Bitwise operations &, | |
OOP_EQUAL | Equality checks ==, != |
OOP_COMPARE | Greater than, less than, etc >, <, >=, <= |
OOP_ADD | Addition and subtraction + - |
OOP_MULTIPLY | Multiplication and division * / % |
OOP_POW | Exponents ^ |
OOP_UNARY | Unary Operators ! |
OOP_GROUP | Parenthesis () |
/datum/node | Node |
/datum/node/expression/value/reference | Reference |
Define Details
OOP_ADD
Addition and subtraction + -
OOP_AND
Logical and &&
OOP_ASSIGN
An abstract syntax tree (AST) is a representation of source code in a computer-friendly format. It is composed of nodes,
each of which represents a certain part of the source code. For example, an
The AST is produced by an <n_Parser> object. It consists of a
Articles:
Macros: Operator Precedence The higher the value, the lower the priority in the precedence.
OOP_BIT
Bitwise operations &, |
OOP_COMPARE
Greater than, less than, etc >, <, >=, <=
OOP_EQUAL
Equality checks ==, !=
OOP_GROUP
Parenthesis ()
OOP_MULTIPLY
Multiplication and division * / %
OOP_OR
Logical or ||
OOP_POW
Exponents ^
OOP_UNARY
Unary Operators !