mirror of
https://github.com/Yawn-Wider/YWPolarisVore.git
synced 2026-07-26 23:41:25 +01:00
7c8bb85de3
* Update settings * Whitespace changes * Comment out merger hooks in gitattributes Corrupt maps would have to be resolved in repo before hooks could be updated * Revert "Whitespace changes" This reverts commit afbdd1d8442973f5d570c30920d9d865b5acd479. * Whitespace again minus example * Gitignore example changelog * Restore changelog merge setting * Keep older dmi hook attribute until hooks can be updated * update vscode settings too * Renormalize remaining * Revert "Gitignore example changelog" This reverts commit de22ad375d3ee4d5930c550da2fd23a29a86e616. * Attempt to normalize example.yml (and another file I guess) * Try again
52 lines
896 B
Plaintext
52 lines
896 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 ..()
|