User Tools

Site Tools


crpl:crpltutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
crpl:crpltutorial [2018/07/11 11:10] – removed broken comments builder17crpl:crpltutorial [2019/12/21 09:21] – xor is exclusive disjunction according to reference, reorder by operator type rytan451
Line 169: Line 169:
 ^ Function ^ Description ^ ^ Function ^ Description ^
 |and|true if last 2 items are true| |and|true if last 2 items are true|
-|or|true if one of the last 2 items are true| +|or|true if at least one of the last 2 items are true| 
-|xor|true if last 2 items are false|+|xor|true if exactly one of the last 2 items are true|
 |not|true if the last item is false| |not|true if the last item is false|
 |gt|'greater than', pops 2 items from the stack, if the first is greater than the second, it results in true| |gt|'greater than', pops 2 items from the stack, if the first is greater than the second, it results in true|
Line 185: Line 185:
  
 ^ Arg1 ^ Arg2 ^ Operation ^ Result ^ ^ Arg1 ^ Arg2 ^ Operation ^ Result ^
- true   false  | or| True +false | false | or | False 
- true   true  and| True | +| true | false or | True | 
- true   true  | or| True | +| true | true | or | True | 
- false   false  xor| True | +true true and | True | 
- false   |not  True +| false | true and False 
- 5   5  eqTrue +false false and False 
- 4   7  neqTrue +false false xor false 
- 9   neq0True +false true xor true 
- 9   2  gtTrue +true true xor false 
- 6   7  lt| True +false | |not | True |
-|  2  |  2  | gte| True | +
-| false | false | and| False | +
-| true | false | xor| False |+
 | true | | not | False | | true | | not | False |
-false false or| False | +| | eq0 | False | 
-false true and| False | +| | neq0 | True | 
-| 9 | 9 | gt| False | +| 5 | 5 | eq | True | 
-| 6 | lteFalse +| 4 | 5 |eq | False 
-| 5 | 5 | lt| False | +| 4 | 7 | neq | True | 
-eqFalse +| 9 | 2 | gt | True 
-| | eq0| False | +| 9 | 9 | gt | False | 
-| 1 | 1 | sub neq0| False |+| 6 | lt True 
 +| 5 | 5 | lt | False | 
 +gte True 
 +lte | False | 
 +| 1 | 1 | sub neq0 | False | 
 Written as: Written as:
 <code>Arg1 Arg2 Operation</code> <code>Arg1 Arg2 Operation</code>
crpl/crpltutorial.txt · Last modified: 2020/05/27 07:59 by Sanian