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 = QStringList() );
79 NodeList parse( TemplateImpl *parent,
const QStringList &stopAt = QStringList() );
90 QSharedPointer<Filter> getFilter(
const QString &name )
const;
96 void skipPast(
const QString &tag );
105 Token takeNextToken();
110 bool hasNextToken()
const;
115 void removeNextToken();
123 void loadLib(
const QString &name );
130 void prependToken(
const Token &token );
133 Q_DECLARE_PRIVATE(
Parser )
134 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.