Skip to content

Instantly share code, notes, and snippets.

@timowest
Last active March 16, 2023 23:28

Revisions

  1. timowest revised this gist May 7, 2013. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -17,3 +17,13 @@ e1.or(e2).and(e3.or(e4)))
    It is serialized as

    (e1 or e2) and (e3 or e4)


    #3
    e1.and(e2).or(e3.and(a4))

    `or`is the top level operation and e1.and(e2) and e3.and(e4) are the lower level operations

    It is serialized as

    e1 and e2 or e3 and e4
  2. timowest revised this gist Mar 6, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    #1
    e1.or(e2).and(e3))

    creates at first and or operation based on e1 and e2 and uses this or operation
    in a top level and operation with e3 as the second operand.
    creates at first an 'or' operation based on e1 and e2 and uses this 'or' operation
    in a top level 'and' operation with e3 as the second operand.

    Since 'and' has higher precedence than 'or' it is serialized as

    @@ -12,7 +12,7 @@ Since 'and' has higher precedence than 'or' it is serialized as
    #2
    e1.or(e2).and(e3.or(e4)))

    and is the top level operation and e1.or(e2) and e3.or(e4) are the lower level operations
    'and' is the top level operation and e1.or(e2) and e3.or(e4) are the lower level operations

    It is serialized as

  3. timowest revised this gist Mar 6, 2013. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    #1 e1.or(e2).and(e3))
    #1
    e1.or(e2).and(e3))

    creates at first and or operation based on e1 and e2 and uses this or operation
    in a top level and operation with e3 as the second operand.
    @@ -8,10 +9,11 @@ Since 'and' has higher precedence than 'or' it is serialized as
    (e1 or e2) and e3


    #2 e1.or(e2).and(e3.or(e4)))
    #2
    e1.or(e2).and(e3.or(e4)))

    and is the top level operation and e1.or(e2) and e3.or(e4) are the lower level operations

    It is serialized as

    (e1 or e2) and (e3 or e4)
    (e1 or e2) and (e3 or e4)
  4. timowest revised this gist Mar 6, 2013. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    #1 e1.or(e2).and(e3))

    creates at first and or operation based on e1 and e2 and uses this or operation in a top level and operation with e3 as the second operand.
    creates at first and or operation based on e1 and e2 and uses this or operation
    in a top level and operation with e3 as the second operand.

    Since 'and' has higher precedence than 'or' it is serialized as

  5. timowest created this gist Mar 6, 2013.
    16 changes: 16 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    #1 e1.or(e2).and(e3))

    creates at first and or operation based on e1 and e2 and uses this or operation in a top level and operation with e3 as the second operand.

    Since 'and' has higher precedence than 'or' it is serialized as

    (e1 or e2) and e3


    #2 e1.or(e2).and(e3.or(e4)))

    and is the top level operation and e1.or(e2) and e3.or(e4) are the lower level operations

    It is serialized as

    (e1 or e2) and (e3 or e4)