-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlogic_ops.mac
34 lines (26 loc) · 1.15 KB
/
logic_ops.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*********************************************************************
*********************************************************************
*** ***
*** ~*~ LOGIC.MAC ~*~ ***
*** ***
*** Definitions for logic operators. ***
*** ***
*** Author: Andrej Vodopivec <[email protected]> ***
*** Licence: GPL version 2 or later ***
*** ***
*********************************************************************/
/*******
* - logic operators nand, nor, implies, eqiv, xor
* - the binding powers of and is 65 and the binding power of
* or is 60.
****/
put('logic, 1.0, 'version)$
infix('nand,64,64)$
declare("nand",commutative)$
infix('nor,64,64)$
declare("nor",commutative)$
infix('implies,59,59)$
infix('equiv,58,58)$
declare("equiv",commutative)$
infix('xor,58,58)$
declare("xor",commutative)$