From d4c6538726b4a8425a62391aab5fddc9a2332d46 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 18 May 2016 13:49:44 -0400 Subject: TITANIC: Work on TTparser findFrames --- engines/titanic/true_talk/tt_parser.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'engines/titanic') diff --git a/engines/titanic/true_talk/tt_parser.cpp b/engines/titanic/true_talk/tt_parser.cpp index 9c955299cf..1658a27b55 100644 --- a/engines/titanic/true_talk/tt_parser.cpp +++ b/engines/titanic/true_talk/tt_parser.cpp @@ -470,7 +470,21 @@ int TTparser::findFrames(TTsentence *sentence) { _sentenceSub = &sentence->_sub; _sentence = sentence; + TTstring *line = sentence->_normalizedLine.copy(); + TTstring wordString; + for (;;) { + // Keep stripping words off the start of the passed input + TTstring wordString = line->tokenize(" \n"); + if (wordString.empty()) + break; + + //TTword *word = nullptr; + //_owner->_vocab.fn1(wordString, &word); + } + + // TODO + delete line; return 0; } -- cgit v1.2.3