public function addParser(SymbolParserInterface $parser)
    {
        if ($parser instanceof self) {
            // Reducing recursivity
            $this->addParsers($parser->parsers);
        } else {
            $this->parsers[] = $parser;
        }
    
        return $this;
    }
public function addParser(SymbolParserInterface $parser)
    {
        if ($parser instanceof self) {
            // Reducing recursivity
            $this->addParsers($parser->parsers);
        } else {
            $this->parsers[] = $parser;
        }
    
        return $this;
    }
public function addParser ( SymbolParserInterface $ parser ) { if ( $ parser instanceof self ) { // Reducing recursivity $ this -> addParsers ( $ parser -> parsers ) ; } else { $ this -> parsers [ ] = $ parser ; } return $ this ; }
Adds a Parser to the chain.

@param SymbolParserInterface $parser
Adds a Parser to the chain .