Files
Polaris/code/modules/scripting/AST/Operators/Unary Operators.dm
MarinaGryphon 593246b595 Linter diagnostics + bans non-var relative pathing (#8150)
* Linter diagnostics + bans non-var relative pathing

* Enable DreamChecker Annotations

* make it executable

* update hashFiles

* oops

* tries to fix it... again

* trying again

* path

* repath

* fix perms

* fixes weird capitalisation issue
2021-06-20 13:14:29 -09:00

52 lines
947 B
Plaintext

/*
File: Unary Operators
*/
/*
Class: unary
Represents a unary operator in the AST. Unary operators take a single operand (referred to as x below) and return a value.
*/
/node/expression/operator/unary
precedence=OOP_UNARY
/*
Class: LogicalNot
Returns !x.
Example:
!true = false and !false = true
*/
//
/node/expression/operator/unary/LogicalNot
name="logical not"
/*
Class: BitwiseNot
Returns the value of a bitwise not operation performed on x.
Example:
~10 (decimal 2) = 01 (decimal 1).
*/
//
/node/expression/operator/unary/BitwiseNot
name="bitwise not"
/*
Class: Minus
Returns -x.
*/
//
/node/expression/operator/unary/Minus
name="minus"
/*
Class: group
A special unary operator representing a value in parentheses.
*/
//
/node/expression/operator/unary/group
precedence=OOP_GROUP
/node/expression/operator/unary/New(node/expression/exp)
src.exp=exp
return ..()