Interface Twig_ParserInterface

Implemented byTwig_Parser
Deprecated since version since 1.12 (to be removed in 3.0)

Interface implemented by parser classes.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parse() Converts a token stream to a node tree. Twig_ParserInterface

Method Details

parse() public abstract method

Converts a token stream to a node tree.

public abstract Twig_Node_Module parse ( Twig_TokenStream $stream )
$stream Twig_TokenStream

A token stream instance

return Twig_Node_Module

A node tree

throws Twig_Error_Syntax

When the token stream is syntactically or semantically wrong