Skip to content

Reserved Keywords ​

Declarations ​

KeywordDescription
streamDeclares a stream
eventDeclares an event type
typeDeclares a type alias
letDeclares an immutable variable
varDeclares a mutable variable
constDeclares a global constant
fnDeclares a function
contextDeclares an execution context for multi-threaded parallelism
configConfiguration block

Control Flow ​

KeywordDescription
ifCondition
elseAlternative branch
elifAlternative condition (else if)
matchPattern matching
forLoop over iterable
whileConditional loop
breakExit loop
continueSkip to next iteration
returnReturn a value

Stream Operators ​

KeywordDescription
fromConnector source binding (.from())
whereFiltering
selectProjection
joinInner stream join
left_joinLeft outer join (all left events, null-fill right)
right_joinRight outer join (null-fill left, all right events)
full_joinFull outer join (all events from both sides)
mergeStream merge
windowTime window
aggregateAggregation
partition_byPartitioning
order_bySorting
limitLimitation
distinctDeduplication
emitEmit output events
forecastPST-based pattern forecasting

Forecast Built-in Variables ​

VariableDescription
forecast_probabilityPattern completion probability (0.0–1.0)
forecast_timeExpected time to completion (nanoseconds)
forecast_stateCurrent NFA state label
forecast_context_depthPST context depth used for prediction

Patterns ​

KeywordDescription
patternDefines a detection pattern

Types and Values ​

KeywordDescription
trueBoolean true
falseBoolean false
nullAbsence of value
intInteger type
floatFloating point type
boolBoolean type
strString type
timestampTimestamp type
durationDuration type

Logical Operators ​

KeywordDescription
andLogical AND
orLogical OR
notLogical NOT
inMembership
isType/identity test

Error Handling ​

KeywordDescription
tryTry block
catchException capture
finallyFinal block
raiseRaise an exception

Other ​

KeywordDescription
asAlias/cast
extendsEvent inheritance
importModule import
exportSymbol export

Keywords Reserved for Future Use ​

The following words are reserved for potential extensions:

  • async, await
  • class, trait, impl
  • pub, priv
  • mod, use
  • yield
  • defer
  • go, spawn

Varpulis - Next-generation streaming analytics engine