Teledyne-lecroy FireInspector - File Based Decoding Manual do Utilizador Página 19

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 74
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 18
13
CATC SCRIPTING LANGUAGE 1.0 CHAPTER 4
Reference Manual Operators
Bitwise Logical Operators
~ Bitwise
complement
Integer-integer Integer ~0b11111110 = 0b00000001
& Bitwise AND Integer-integer Integer 0b11111110 & 0b01010101 =
0b01010100
^ Bitwise
exclusive OR
Integer-integer Integer 0b11111110 ^ 0b01010101 =
0b10101011
| Bitwise
inclusive OR
Integer-integer Integer 0b11111110 | 0b01010101 =
0b11111111
Shift Operators
<< Left shift Integer-integer Integer 0b11111110 << 3 = 0b11110000
>> Right shift Integer-integer Integer 0b11111110 >> 1 = 0b01111111
Assignment Operator
= Assignment Any Any A = 1
B = C = A
List Operators
sizeof() Number of
elements
Any Integer sizeof([1, 2, 3]) = 3
sizeof('0011223344') = 5
sizeof("string") = 6
sizeof(12) = 1
sizeof([1, [2, 3]]) = 2
*Note: the last example demonstrates that the
sizeof() operator returns the shallow count of a
complex list.
head() Head List Any head([1, 2, 3]) = 1
*Note: the Head of a list is the first item in the list.
tail() Tail List List tail([1, 2, 3]) = [2, 3]
*Note: the Tail of a list includes everything except
the Head.
Operator
Symbol Description
Operand
Types
Result
Types Examples
Table 4.2: Operators (Continued)
Vista de página 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 73 74

Comentários a estes Manuais

Sem comentários