Skip to main content

Crate lemon

Crate lemon 

Source
Expand description

Lemon — the strategy DSL. spec is the serializable Expr AST; dsl is its human-writable text syntax. parse lowers .lemon source to the JSON Expr tree the engine evaluates; format renders a tree back to source.

Re-exports§

pub use spec::Expr;

Modules§

spec
Expr: the serializable strategy AST. A JSON tree (tagged by "op") that the website and the batch runner both emit; [crate::eval] walks it against a data context to produce a position matrix.

Structs§

ParseError
A parse failure with a 1-based source position.

Functions§

format
parse
Lower DSL text to a JSON Expr tree.