When the expression expr is matched from the input, the statement block is executed. The statement block can call states ' primitives, user-defined subroutines, call other states, etc. Expression END matches the end of the state, its block is executed when states leaves the state. If expr is a symbol, its value is looked up from the global environment and if it is a regular expression, it is matched to the input, otherwise that rule is ignored. The states program file can also have top-level expressions, they are evaluated after the program file is parsed but before any input files are processed or the start block is evaluated.
Function returns whatever the symbol state's terminating return statement returned.
Function returns 1 if start state was resolved or 0 otherwise. Function returns 1 if start state was resolved or 0 otherwise. Concanate argument strings and return result as a new string. Get value of environment variable str . Returns an empty string if variable var is undefined.