Module prelude

Module prelude 

Source
Expand description

Convenience module that re-exports all public types and functions.

This module provides a single import point for all the library’s public API, including AST types, error types, lexer, parser, and token types.

Structs§

Access
Field access expression (e.g., e.data.price).
App
Function application (e.g., sum(e.price), count()).
Attrs
Attributes attached to each expression node.
Binary
Binary operation (e.g., a + b, x == y, p AND q).
Expr
An expression with metadata.
Field
A field in a record literal (e.g., {name: "Alice", age: 30}).
OrderBy
ORDER BY clause specification.
Pos
Position information for source code locations.
Query
A complete EventQL query.
Source
A data source in a FROM clause.
Token
A token with position information.
Unary
Unary operation (e.g., -x, NOT active).

Enums§

Error
Top-level error type for the EventQL parser.
LexerError
Errors that can occur during lexical analysis.
Limit
Result set limit specification.
Operator
Operator types for expressions.
Order
Sort order direction.
ParserError
Errors that can occur during syntactic analysis.
SourceKind
The kind of data source.
Sym
Symbol type representing the category and value of a token.
Symbol
Structural symbols used in EventQL syntax.
Type
Type information for expressions.
Value
The kind of value an expression represents.

Functions§

parse
Parse a sequence of tokens into a Query AST.
tokenize
Tokenize an EventQL query string.

Type Aliases§

ParseResult
Result type for parser operations.
Text
Type alias for text with position tracking.