Expand description
Lexical analyzer
See the parent module’s documentation to learn how to use the lexer.
Structs§
- Config
Deprecated - Configuration for the lexer
- Lexer
- Lexical analyzer
- Parse
Keyword Error - Error value indicating that a string is not a keyword
- Parse
Operator Error - Error value indicating that the input string is not a valid operator
- Plain
Lexer - Reference to
Lexerwith line continuation disabled - Token
- Result of lexical analysis produced by the
Lexer - TryFrom
Operator Error - Error value indicating an operand conversion failure
- Word
Lexer - 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
- Word
Context - 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.