4 * This file is part of Twig.
6 * (c) 2009 Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
13 * Base class for all token parsers.
15 * @author Fabien Potencier <fabien@symfony.com>
17 abstract class Twig_TokenParser
implements Twig_TokenParserInterface
25 * Sets the parser associated with this token parser
27 * @param $parser A Twig_Parser instance
29 public function setParser(Twig_Parser
$parser)
31 $this->parser
= $parser;