interface Twig_LexerInterface

Interface implemented by lexer classes.

@package twig @author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_LexerInterface

All classes that implement Twig_LexerInterface

File

drupal/core/vendor/twig/twig/lib/Twig/LexerInterface.php, line 18

View source
interface Twig_LexerInterface {

  /**
   * Tokenizes a source code.
   *
   * @param string $code     The source code
   * @param string $filename A unique identifier for the source code
   *
   * @return Twig_TokenStream A token stream instance
   */
  function tokenize($code, $filename = null);

}

Members