Expand description
Public tokenizer for GCTF assertion expressions.
Pipeline: text → tokenize_assertion() → Vec<Token> where each Token
has a Span { start, end } with exact byte positions in the source.
This is used by:
- LSP semantic tokens — highlight operators, keywords, plugins, regexes
- Optimizer — safe string-literal-aware rule matching (4.3)
- Semantics — type-checking operators against TypeInfo
Structs§
Enums§
- Token
Kind - Token kinds produced by the assertion tokenizer.
Functions§
- collect_
identifiers - Collect all identifier tokens.
- collect_
operators - Collect all operator tokens.
- collect_
plugin_ calls - Collect plugin call names with spans.
- tokenize_
assertion - Tokenize an assertion expression string into a list of tokens with exact byte positions.