Skip to main content

Module token

Module token 

Source
Expand description

§LogQL Tokens

Token type produced by the crate::lexer. Function names (rate, count_over_time, sum, json, line_format, …) are deliberately lexed as Token::Ident — LogQL treats them as context-dependent identifiers, so the parser resolves them where the grammar expects a function or parser stage. Only words that are reserved in the grammar itself become keyword tokens.

Structs§

SpannedToken
A token with its 1-based source position (position of the token’s first character).

Enums§

Token
A single LogQL token.