Files
Phraseanet/lib/classes/Twig/Grammar/Constant.php
2011-02-16 16:09:48 +01:00

25 lines
476 B
PHP
Executable File

<?php
/*
* This file is part of Twig.
*
* (c) 2010 Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
class Twig_Grammar_Constant extends Twig_Grammar
{
public function __toString()
{
return $this->name;
}
public function parse(Twig_Token $token)
{
$this->parser->getStream()->expect($this->name);
return $this->name;
}
}