Lines Matching defs:modes
12 * Sets up the Lexer with modes and points it to the Handler
23 /** @var ModeInterface[] $modes */
24 protected $modes = [];
46 $this->modes['base'] = $BaseMode;
50 $this->modes['base']->Lexer = $this->lexer;
64 if (!isset($this->modes['base'])) {
68 $this->modes[$name] = $Mode;
72 * Connect all modes with each other
83 foreach (array_keys($this->modes) as $mode) {
88 $this->modes[$mode]->preConnect();
90 foreach (array_keys($this->modes) as $cm) {
91 if ($this->modes[$cm]->accepts($mode)) {
92 $this->modes[$mode]->connectTo($cm);
96 $this->modes[$mode]->postConnect();