Skip to main content

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.

Re-exports§

pub use super::arena::*;

Modules§

analysis

Structs§

Access
Field access expression (e.g., e.data.price).
Analysis
A type checker and static analyzer for EventQL expressions.
AnalysisContext
Context for controlling analysis behavior.
AnalysisOptions
Configuration options for static analysis.
App
Function application (e.g., sum(e.price), count()).
ArgsRef
A reference to a function argument type list stored in the TypeArena.
Attrs
Attributes attached to each expression node.
Binary
Binary operation (e.g., a + b, x == y, p AND q).
Binding
A source binding. A name attached to a source of events.
ExprKey
Internal hash key for an expression to provide structural equality.
ExprPtr
Internal pointer to an expression in the arena.
ExprRef
A reference to an expression stored in an ExprArena.
Field
A field in a record literal (e.g., {name: "Alice", age: 30}).
FunArgs
Represents function argument types with optional parameter support.
GroupBy
GROUP BY clause specification
OrderBy
ORDER BY clause specification.
Parser
A parser for EventQL expressions and queries.
Pos
Position information for source code locations.
Query
A complete EventQL query.
Raw
Represents the state of a query that only has a valid syntax. There are no guarantee that all the variables exists or that the query is sound. For example, if the user is asking for an event that has field that should be a string or a number at the same time.
RecRef
A reference to a vector of record fields stored in the ExprArena.
Record
A reference to a record definition stored in the TypeArena.
Scope
Represents a variable scope during static analysis.
Source
A data source in a FROM clause.
StrRef
A reference to a string stored in the StringArena.
Token
A token with position information.
TypeRef
A reference to a type stored in the TypeArena.
Typed
Represents the state of a query that has been statically analyzed.
Unary
Unary operation (e.g., -x, NOT active).
VecRef
A reference to a vector of expressions stored in the ExprArena.

Enums§

AnalysisError
Errors that can occur during static analysis.
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.

Type Aliases§

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