21 #ifndef GRANTLEE_PARSER_H 22 #define GRANTLEE_PARSER_H 28 #include <QtCore/QStringList> 48 class GRANTLEE_TEMPLATES_EXPORT
Parser :
public QObject
57 Parser(
const QList<Token> &tokenList, QObject *parent);
73 NodeList parse(
Node *parent,
const QStringList &stopAt = {});
79 NodeList parse(TemplateImpl *parent,
const QStringList &stopAt = {});
91 QSharedPointer<Filter> getFilter(
const QString &name)
const;
97 void skipPast(
const QString &tag);
107 Token takeNextToken();
112 bool hasNextToken()
const;
117 void removeNextToken();
119 void invalidBlockTag(
const Token &token,
const QString &command,
120 const QStringList &stopAt = {});
128 void loadLib(
const QString &name);
136 void prependToken(
const Token &token);
140 ParserPrivate *
const d_ptr;
The Parser class processes a string template into a tree of nodes.
Base class for all nodes.
A list of Nodes with some convenience API for rendering them.
The Grantlee namespace holds all public Grantlee API.