Skip to main content

Module parser

Module parser 

Source
Expand description

CEL (Common Expression Language) parser.

Re-exports§

pub use macros::ArgCount;
pub use macros::Macro;
pub use macros::MacroContext;
pub use macros::MacroExpander;
pub use macros::MacroExpansion;
pub use macros::MacroRegistry;
pub use macros::MacroStyle;

Modules§

macros
Macro system for CEL parser.

Structs§

LexError
Lexer error with span information.
ParseError
A parse error with source location.
ParseOptions
Options for parsing CEL expressions.
ParseResult
Result of parsing a CEL expression.

Enums§

Token
CEL tokens.

Functions§

lex
Tokenize the input string.
parse
Parse a CEL expression from source.
parse_with_options
Parse a CEL expression with custom options.

Type Aliases§

MacroCalls
Map of expression IDs to the original macro call expressions. Used to preserve source information for IDE features.
SpannedToken
A token with its source span.