Package rxpy :: Package engine :: Package simple :: Module engine
[hide private]
[frames] | no frames]

Module engine

source code

A matcher implementation using a simple interpreter-based approach with the Visitor interface. State is encapsulated in State while program flow uses trampolining to avoid exhausting the Python stack. In addition, to further reduce the use of the (non-Python) stack, simple repetition is "run length" compressed (this addresses ".*" matching against long strings, for example).
Classes [hide private]
  Fail
Raised on failure.
  Match
raised on success
  State
State for a particular position moment / graph position / text offset.
  Stack
A stack of states.
  Loops
The state needed to track explicit repeats (used in the _STATEFUL flag was set).
  SimpleEngine
The interpreter.