21 #ifndef SCRIPTABLE_PARSER_H
22 #define SCRIPTABLE_PARSER_H
24 #include <QtCore/QObject>
25 #include <QtCore/QStringList>
26 #include <QtQml/QJSValue>
41 Parser *parser() {
return m_p; }
43 Q_INVOKABLE
bool hasNextToken()
const;
46 QList<QObject *> parse(QObject *parent,
const QString &stopAt);
47 QList<QObject *> parse(QObject *parent,
const QStringList &stopAt = {});
49 void skipPast(
const QString &tag);
51 QJSValue takeNextToken();
52 void removeNextToken();
54 void loadLib(
const QString &name);
The Parser class processes a string template into a tree of nodes.
The Cutelee namespace holds all public Cutelee API.