21 #ifndef GRANTLEE_PARSER_H 22 #define GRANTLEE_PARSER_H 28 #include <QtCore/QStringList> 49 class GRANTLEE_TEMPLATES_EXPORT
Parser :
public QObject
58 Parser(
const QList<Token> &tokenList, QObject *parent);
76 NodeList parse(
Node *parent,
const QStringList &stopAt = QStringList());
83 const QStringList &stopAt = QStringList());
95 QSharedPointer<Filter> getFilter(
const QString &name)
const;
103 void skipPast(
const QString &tag);
115 Token takeNextToken();
120 bool hasNextToken()
const;
125 void removeNextToken();
127 void invalidBlockTag(
const Token &token,
const QString &command,
128 const QStringList &stopAt = QStringList());
136 void loadLib(
const QString &name);
144 void prependToken(
const Token &token);
148 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.