Table 2.2 escape sequences – Teledyne LeCroy LeCroy Analyzers File Based Decoding Manual User Manual
Page 10

Chapter 2: Values
File-based Decoding User Manual
4
LeCroy Corporation
Escape Sequences
These are the available escape sequences in CSL:
Lists
A list can hold zero or more pieces of data. A list that contains zero pieces of data is called
an empty list. An empty list evaluates to false when used in an expression, whereas a
non-empty list evaluates to true. List literals are expressed using the square bracket (
[]
)
delimiters. List elements can be of any type, including lists.
[1, 2, 3, 4]
[]
["one", 2, "three", [4, [5, [6]]]]
Raw Bytes
Raw binary values are used primarily for efficient access to packet payloads. A literal
notation is supported using single quotes:
'00112233445566778899AABBCCDDEEFF'
This represents an array of 16 bytes with values starting at 00 and ranging up to 0xFF.
The values can only be hexadecimal digits. Each digit represents a nybble (four bits), and
if there are not an even number of nybbles specified, an implicit zero is added to the first
byte. For example:
'FFF'
is interpreted as
'0FFF'
null
null
indicates an absence of valid data. The keyword null represents a literal null
value and evaluates to false when used in expressions.
result = null;
Character
Escape
Sequence
Example
Output
backslash
\\
"This is a backslash: \\"
This is a backslash: \
double
quote
\"
"\"Quotes!\""
"Quotes!"
horizontal
tab
\t
"Before tab\tAfter tab"
Before tab
After tab
newline
\n
"This is how\nto get a newline."
This is how
to get a newline.
single quote
\'
"\'Single quote\'"
'Single quote'
Table 2.2 Escape Sequences