21 #ifndef CUTELEE_PARSER_H
22 #define CUTELEE_PARSER_H
28 #include <QtCore/QStringList>
48 class CUTELEE_TEMPLATES_EXPORT
Parser :
public QObject
57 Parser(
const QList<Token> &tokenList, QObject *parent);
73 NodeList parse(
Node *parent,
const QStringList &stopAt = {});
91 std::shared_ptr<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);
139 Q_DECLARE_PRIVATE(Parser)
140 ParserPrivate *
const d_ptr;
A list of Nodes with some convenience API for rendering them.
Base class for all nodes.
The Parser class processes a string template into a tree of nodes.
NodeList parse(TemplateImpl *parent, const QStringList &stopAt={})
The Cutelee namespace holds all public Cutelee API.