function addPattern($pattern, $mode = "accept") {
            if (!isset($this->_regexes[$mode])) {
                $this->_regexes[$mode] = new ParallelRegex($this->_case);
            }
            $this->_regexes[$mode]->addPattern($pattern);
        }
function addPattern($pattern, $mode = "accept") {
            if (!isset($this->_regexes[$mode])) {
                $this->_regexes[$mode] = new ParallelRegex($this->_case);
            }
            $this->_regexes[$mode]->addPattern($pattern);
        }
function addPattern ( $ pattern , $ mode = "accept" ) { if ( ! isset ( $ this -> _regexes [ $ mode ] ) ) { $ this -> _regexes [ $ mode ] = new ParallelRegex ( $ this -> _case ) ; } $ this -> _regexes [ $ mode ] -> addPattern ( $ pattern ) ; }
Adds a token search pattern for a particular
parsing mode. The pattern does not change the
current mode.
@param string $pattern      Perl style regex, but ( and )
lose the usual meaning.
@param string $mode         Should only apply this
pattern when dealing with
this type of input.
@access public
Adds a token search pattern for a particular parsing mode . The pattern does not change the current mode .