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 );
82 NodeList parse(
Node *parent,
const QStringList &stopAt = QStringList() );
88 NodeList parse( TemplateImpl *parent,
const QStringList &stopAt = QStringList() );
99 Filter::Ptr getFilter(
const QString &name )
const;
105 void skipPast(
const QString &tag );
114 Token takeNextToken();
119 bool hasNextToken()
const;
124 void removeNextToken();
132 void loadLib(
const QString &name );
139 void prependToken(
const Token &token );
142 Q_DECLARE_PRIVATE(
Parser )
143 ParserPrivate *
const d_ptr;