From 949609b3f19b8a8823a7c62f23617eef05b796dd Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 28 Dec 2015 20:19:42 +0100 Subject: allow access to the state member --- akonadish/syntaxtree.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'akonadish/syntaxtree.cpp') 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 QStringList &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 -- cgit v1.2.3