Skip to main content

Module compiler

Module compiler 

Source
Expand description

Rule compiler: TowerRule predicate → ScryerFilter.

The compiler translates the structured Predicate tree into the ScryerFilter shape that is handed to scryer.subscribe. Predicates are pushed down to where events are produced; compound predicates are preserved as boolean nodes that scryer evaluates server-side.

Enums§

CompileError
Error produced when a predicate cannot be compiled into a valid scryer filter.

Functions§

compile
Compile a TowerRule into a ScryerFilter ready for scryer.subscribe.