21 #ifndef GRANTLEE_PARSER_H
22 #define GRANTLEE_PARSER_H
28 #include <QtCore/QStringList>
48 class GRANTLEE_CORE_EXPORT
Parser :
public QObject
57 Parser(
const QList<Token> &tokenList, QObject *parent );
70 void setTokens(
const QList<Token> &tokenList );
88 NodeList parse( TemplateImpl *parent,
const QStringList &stopAt = QStringList() );
132 void loadLib(
const QString &name );
142 Q_DECLARE_PRIVATE(
Parser )
143 ParserPrivate *
const d_ptr;
The Parser class processes a string template into a tree of nodes.
Base class for all nodes.
Filter::Ptr getFilter(const QString &name) const
bool hasNextToken() const
void skipPast(const QString &tag)
NodeList parse(Node *parent, const QString &stopAt)
Parser(const QList< Token > &tokenList, QObject *parent)
void prependToken(const Token &token)
NodeList parse(TemplateImpl *parent, const QStringList &stopAt=QStringList())
A list of Nodes with some convenience API for rendering them.
NodeList parse(Node *parent, const QStringList &stopAt=QStringList())
The Grantlee namespace holds all public Grantlee API.