From 1b136555d279bf2cfb28f5661225c010426754f5 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 5 Oct 2011 15:22:53 +1100 Subject: transition to Twig --- inc/contrib/Twig/LexerInterface.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 inc/contrib/Twig/LexerInterface.php (limited to 'inc/contrib/Twig/LexerInterface.php') diff --git a/inc/contrib/Twig/LexerInterface.php b/inc/contrib/Twig/LexerInterface.php new file mode 100644 index 00000000..02233849 --- /dev/null +++ b/inc/contrib/Twig/LexerInterface.php @@ -0,0 +1,29 @@ + + */ +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); +} -- cgit v1.3