You are here

public function Twig_TokenParserInterface::parse in Translation template extractor 6.3

Same name and namespace in other branches
  1. 7.3 vendor/Twig/TokenParserInterface.php \Twig_TokenParserInterface::parse()

Parses a token and returns a node.

Parameters

Twig_Token $token A Twig_Token instance:

Return value

Twig_NodeInterface A Twig_NodeInterface instance

Throws

Twig_Error_Syntax

16 methods override Twig_TokenParserInterface::parse()
Twig_TokenParser_AutoEscape::parse in vendor/Twig/TokenParser/AutoEscape.php
Parses a token and returns a node.
Twig_TokenParser_Block::parse in vendor/Twig/TokenParser/Block.php
Parses a token and returns a node.
Twig_TokenParser_Do::parse in vendor/Twig/TokenParser/Do.php
Parses a token and returns a node.
Twig_TokenParser_Extends::parse in vendor/Twig/TokenParser/Extends.php
Parses a token and returns a node.
Twig_TokenParser_Filter::parse in vendor/Twig/TokenParser/Filter.php
Parses a token and returns a node.

... See full list

File

vendor/Twig/TokenParserInterface.php, line 35

Class

Twig_TokenParserInterface
Interface implemented by token parsers.

Code

public function parse(Twig_Token $token);