mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
36 lines
1.6 KiB
Text
36 lines
1.6 KiB
Text
|
Caps are parser tokens (ie, > 255), the rest are actual characters.
|
||
|
|
||
|
binary expressions:
|
||
|
OR logical or (e1, e2)
|
||
|
AND logical and (e1, e2)
|
||
|
EQ compare equal (e1, e2)
|
||
|
NE compare not equal (e1, e2)
|
||
|
LE compare less than or equal (e1, e2)
|
||
|
GE compare grater than or equal (e1, e2)
|
||
|
LT compare less than (e1, e2)
|
||
|
GT compare greater than (e1, e2)
|
||
|
= assign (dest, source)
|
||
|
+ add (e1, e2)
|
||
|
- subtract (e1, e2)
|
||
|
* multiply (e1, e2)
|
||
|
/ divide (e1, e2)
|
||
|
% modulo (e1, e2)
|
||
|
& bit and (e1, e2)
|
||
|
| bit or (e1, e2)
|
||
|
^ bit xor (e1, e2)
|
||
|
SHL bit shift left (e1, e2)
|
||
|
SHR bit shift right (e1, e2)
|
||
|
. dereference (entity, field)
|
||
|
i if test goto label (test, label)
|
||
|
n if not test goto label (test, label)
|
||
|
b bind expression with temp def (expression, temp)
|
||
|
s state opcode ([time, funciton]) (time exp, think function)
|
||
|
c call function (params) (function, param expr list or null)
|
||
|
|
||
|
unary expressions:
|
||
|
- negate (* -1) (expr)
|
||
|
~ bit not (expr)
|
||
|
! logical not (expr)
|
||
|
g goto label (label)
|
||
|
r return value (expr or null)
|