Git commit 949609b3f19b8a8823a7c62f23617eef05b796dd by Aaron Seigo. Committed on 28/12/2015 at 19:19. Pushed by aseigo into branch 'develop'. allow access to the state member M +5 -0 akonadish/syntaxtree.cpp M +1 -1 akonadish/syntaxtree.h http://commits.kde.org/akonadi-next/949609b3f19b8a8823a7c62f23617eef05b796dd diff --git a/akonadish/syntaxtree.cpp b/akonadish/syntaxtree.cpp index 495ad22..4860582 100644 --- a/akonadish/syntaxtree.cpp +++ b/akonadish/syntaxtree.cpp @@ -168,6 +168,11 @@ Syntax::List SyntaxTree::nearestSyntax(const QStringLi= st &words, const QString & return matches; } = +State &SyntaxTree::state() +{ + return m_state; +} + QStringList SyntaxTree::tokenize(const QString &text) { //TODO: properly tokenize (e.g. "foo bar" should not become ['"foo', '= bar"']a diff --git a/akonadish/syntaxtree.h b/akonadish/syntaxtree.h index 884a10d..ee06d28 100644 --- a/akonadish/syntaxtree.h +++ b/akonadish/syntaxtree.h @@ -63,7 +63,7 @@ public: Syntax::List syntax() const; Command match(const QStringList &commands) const; Syntax::List nearestSyntax(const QStringList &words, const QString &fr= agment) const; - + State &state(); bool run(const QStringList &commands); = static QStringList tokenize(const QString &text);