public function updateOptions()
    {
        if ($onLex = $this->getOption('on_lex')) {
            $this->attach(LexerEvent::LEX, $onLex);
        }

        if ($onLex = $this->getOption('on_lex_end')) {
            $this->attach(LexerEvent::END_LEX, $onLex);
        }

        if ($onToken = $this->getOption('on_token')) {
            $this->attach(LexerEvent::TOKEN, $onToken);
        }

        $this->addModules($this->getOption('lexer_modules'));
    }
public function updateOptions()
    {
        if ($onLex = $this->getOption('on_lex')) {
            $this->attach(LexerEvent::LEX, $onLex);
        }

        if ($onLex = $this->getOption('on_lex_end')) {
            $this->attach(LexerEvent::END_LEX, $onLex);
        }

        if ($onToken = $this->getOption('on_token')) {
            $this->attach(LexerEvent::TOKEN, $onToken);
        }

        $this->addModules($this->getOption('lexer_modules'));
    }
public function updateOptions ( ) { if ( $ onLex = $ this -> getOption ( 'on_lex' ) ) { $ this -> attach ( LexerEvent :: LEX , $ onLex ) ; } if ( $ onLex = $ this -> getOption ( 'on_lex_end' ) ) { $ this -> attach ( LexerEvent :: END_LEX , $ onLex ) ; } if ( $ onToken = $ this -> getOption ( 'on_token' ) ) { $ this -> attach ( LexerEvent :: TOKEN , $ onToken ) ; } $ this -> addModules ( $ this -> getOption ( 'lexer_modules' ) ) ; }
Synchronize the lexer to the new options values.
Synchronize the lexer to the new options values .