class DataHubPoint
class PointQuality
class PointType
SlEscapeChar (inbuf, offset, outbuf, outoffset)
SlSkipTo (inbuf, offset, stops, maxbuf)
SlSkipFast (inbuf, offset, stop, maxbuf)
SlSkipToClosing (buffer, offset, maxbuf, opening, closing)
SlSkipWhite (buffer, offset, maxbuf)
addArg (arglist, inbuf, offset, length)
UT_LispParseSafe (buffer, offset, buflen, flags)
parse (buffer)
escaped_string (string, quoted, terminators)
escaped_string2 (string, quoted, terminators)
escaped_string_with_options (string, quoted, special_only)
escaped_string_auto (string, quoted)
escaped_symbol (string)
int UT_ParseFlagExpressions = 1
NormalTerminators = set(['\\', ' ', '\t', '\n', '\f', '\r', '\'', '\"', '(', ')', '[', ']', '#', ';', '`', ',', '{', '}', chr(0), chr(0x1b)])
SpecialTerminators = set(['\t', '\n', '\f', '\r', chr(0), chr(0x1b), '\\', '\"'])
list BNormalTerminators = [False] * 128
list BSpecialTerminators = [False] * 128
list BSymbolTerminators = [False] * 128
bool TerminatorsConfigured = False
terminators_lock = threading.Lock()
lispparse.addArg ( arglist, inbuf, offset, length)
Adds an argument to the argument list.
Arguments:
arglist: List of arguments.
inbuf: Input buffer.
offset: Starting offset in the input buffer.
length: Length of the argument.
lispparse.escaped_string ( string, quoted, terminators)
Escapes a string based on the provided terminators.
Arguments:
string: Input string.
quoted: Whether the string should be quoted.
terminators: List of terminator characters.
Returns:
str: Escaped string.
lispparse.escaped_string2 ( string, quoted, terminators)
Escapes a string based on the provided terminators
(alternative implementation).
Arguments:
string: Input string.
quoted: Whether the string should be quoted.
terminators: List of terminator characters.
Returns:
str: Escaped string.
lispparse.escaped_string_auto ( string, quoted)
Automatically escapes a string based on whether it is quoted.
Arguments:
string: Input string.
quoted: Whether the string should be quoted.
Returns:
str: Escaped string.
lispparse.escaped_string_with_options ( string, quoted, special_only)
Escapes a string with options for special terminators.
Arguments:
string: Input string.
quoted: Whether the string should be quoted.
special_only: Whether to use special terminators only.
Returns:
str: Escaped string.
lispparse.escaped_symbol ( string)
Escapes a symbol.
Arguments:
string: Input string.
Returns:
str: Escaped symbol.
lispparse.initialize_terminators ( )
Initializes the terminator tables.
lispparse.parse ( buffer)
Parses a buffer containing LISP expressions.
Arguments:
buffer: Input buffer.
Returns:
list: List of parsed expressions.
lispparse.SlEscapeChar ( inbuf, offset, outbuf, outoffset)
Escapes a character in the input buffer and writes it to the
output buffer.
Arguments:
inbuf: Input buffer.
offset: Offset in the input buffer.
outbuf: Output buffer.
outoffset: Offset in the output buffer.
Returns:
int: Length of the escaped character.
lispparse.SlSkipFast ( inbuf, offset, stop, maxbuf)
Skips characters in the input buffer quickly until a stop character
is found.
Arguments:
inbuf: Input buffer.
offset: Starting offset in the input buffer.
stop: Stop character.
maxbuf: Maximum buffer length.
Returns:
int: Offset of the first stop character or maxbuf if not found.
lispparse.SlSkipTo ( inbuf, offset, stops, maxbuf)
Skips characters in the input buffer until a stop character is found.
Arguments:
inbuf: Input buffer.
offset: Starting offset in the input buffer.
stops: String of stop characters.
maxbuf: Maximum buffer length.
Returns:
int: Offset of the first stop character or None if not found.
lispparse.SlSkipToClosing ( buffer, offset, maxbuf, opening, closing)
Skips characters in the buffer until the closing character is found.
Arguments:
buffer: Input buffer.
offset: Starting offset in the buffer.
maxbuf: Maximum buffer length.
opening: Opening character.
closing: Closing character.
Returns:
int: Offset of the closing character or None if not found.
lispparse.SlSkipWhite ( buffer, offset, maxbuf)
Skips whitespace characters in the buffer.
Arguments:
buffer: Input buffer.
offset: Starting offset in the buffer.
maxbuf: Maximum buffer length.
Returns:
int: Offset of the first non-whitespace character or
None if not found.
lispparse.UT_LispParseSafe ( buffer, offset, buflen, flags)
Parses a LISP expression safely.
Arguments:
buffer: Input buffer.
offset: Starting offset in the buffer.
buflen: Length of the buffer.
flags: Parsing flags.
Returns:
tuple: Offset of the first character after the expression and
an array of arguments.