diff options
Diffstat (limited to 'akonadish/syntaxtree.cpp')
-rw-r--r-- | akonadish/syntaxtree.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 & | |||
168 | return matches; | 168 | return matches; |
169 | } | 169 | } |
170 | 170 | ||
171 | State &SyntaxTree::state() | ||
172 | { | ||
173 | return m_state; | ||
174 | } | ||
175 | |||
171 | QStringList SyntaxTree::tokenize(const QString &text) | 176 | QStringList SyntaxTree::tokenize(const QString &text) |
172 | { | 177 | { |
173 | //TODO: properly tokenize (e.g. "foo bar" should not become ['"foo', 'bar"']a | 178 | //TODO: properly tokenize (e.g. "foo bar" should not become ['"foo', 'bar"']a |