Module lex

Module lex 

Source
Expand description

Lexical analyzer

See the parent module’s documentation to learn how to use the lexer.

Structs§

ConfigDeprecated
Configuration for the lexer
Lexer
Lexical analyzer
ParseKeywordError
Error value indicating that a string is not a keyword
ParseOperatorError
Error value indicating that the input string is not a valid operator
PlainLexer
Reference to Lexer with line continuation disabled
Token
Result of lexical analysis produced by the Lexer
TryFromOperatorError
Error value indicating an operand conversion failure
WordLexer
Lexer with additional information for parsing texts and words

Enums§

Keyword
Token identifier for reserved words
Operator
Operator token identifier
TokenId
Token identifier, or classification of tokens
WordContext
Context in which a word is parsed

Functions§

is_blank
Returns true if the character is a blank character.
is_name
Tests if a string is a valid name.
is_name_char
Tests if a character can be part of a variable name.
is_operator_char
Tests whether the given character is the first character of an operator.
is_portable_name
Tests if a string is a valid POSIXly-portable name.
is_portable_name_char
Tests if a character can be part of a POSIXly-portable name.
is_single_char_name
Tests if a character is a valid single-character raw parameter.
is_special_parameter_char
Tests if a character names a special parameter.
is_token_delimiter_char
Tests whether the given character is a token delimiter.