22 #ifndef TITANIC_TT_PARSER_H 23 #define TITANIC_TT_PARSER_H 25 #include "titanic/true_talk/tt_node.h" 26 #include "titanic/true_talk/tt_pronoun.h" 27 #include "titanic/true_talk/tt_sentence.h" 28 #include "titanic/true_talk/tt_string.h" 32 enum NumberFlag { NF_1 = 1, NF_2 = 2, NF_4 = 4, NF_8 = 8, NF_10 = 0x10 };
35 NO_ACTION = 0, CHECK_COMMAND_FORM, EXPECT_THING, OBJECT_IS_TO,
36 SEEK_ACTOR, SEEK_OBJECT, SEEK_OBJECT_OVERRIDE, SEEK_TO,
37 SEEK_FROM, SEEK_TO_OVERRIDE, SEEK_FROM_OVERRIDE, SEEK_LOCATION,
38 SEEK_OWNERSHIP, SEEK_STATE, SEEK_MODIFIERS, SEEK_NEW_FRAME,
39 SEEK_STATE_OBJECT, SET_ACTION, SET_COLOR, ACTOR_IS_TO,
40 ACTOR_IS_FROM, ACTOR_IS_OBJECT, STATE_IDENTITY,
41 WORD_TYPE_IS_SENTENCE_TYPE, COMPLEX_VERB
54 _text(text), _value(value), _flags(flags) {}
103 bool normalizeContraction(
const TTstring &srcLine,
int &srcIndex,
TTstring &destLine);
108 static int isEmoticon(
const TTstring &str,
int &index);
138 int replaceNumbers(
TTstring &line,
int startIndex);
150 int loadRequests(
TTword *word);
151 int considerRequests(
TTword *word);
152 int processRequests(
TTword *word);
154 int addToConceptList(
TTword *word);
160 void addNode(uint tag);
181 void preprocessGerman(
TTstring &line);
183 int processModifiers(
int modifier,
TTword *word);
185 int checkForAction();
187 bool checkConcept2(
TTconcept *conceptP,
int conceptMode);
188 int filterConcepts(
int conceptMode,
int conceptIndex);
189 bool resetConcept(
TTconcept **conceptPP,
int conceptIndex);
Definition: tt_sentence.h:37
Definition: tt_parser.h:47
Definition: tt_concept.h:35
Definition: tt_parser.h:66
Definition: tt_sentence.h:49
Definition: tt_pronoun.h:29
Definition: tt_string.h:45
Definition: tt_parser.h:58
Definition: script_handler.h:36