Debian Codegraph @

terps/alan3/dictionary.h

raw symbols SCIP
1 #ifndef DICTIONARY_H_
2 #define DICTIONARY_H_
3 /*----------------------------------------------------------------------*\
4
5 Dictionary of player words in Alan interpreter
6
7 \*----------------------------------------------------------------------*/
8
9 /* IMPORTS */
10 #include "acode.h"
11 #include "types.h"
12
13 /* CONSTANTS */
14
15
16 /* TYPES */
17
18
19 /* DATA */
20 extern DictionaryEntry *dictionary;
21 extern int dictionarySize;
22 extern int conjWord; /* First conjunction in dictionary */
23
24
25 /* FUNCTIONS */
26 extern bool isVerbWord(int wordIndex);
27 extern bool isConjunctionWord(int wordIndex);
28 extern bool isExceptWord(int wordIndex);
29 extern bool isThemWord(int wordIndex);
30 extern bool isItWord(int wordIndex);
31 extern bool isNounWord(int wordIndex);
32 extern bool isAdjectiveWord(int wordIndex);
33 extern bool isPrepositionWord(int wordIndex);
34 extern bool isAllWord(int wordIndex);
35 extern bool isDirectionWord(int wordIndex);
36 extern bool isPronounWord(int wordIndex);
37 extern bool isLiteralWord(int wordIndex);
38
39 extern bool isConjunction(int wordCode);
40 extern bool isAll(int wordCode);
41 extern bool isNoise(int wordCode);
42 extern bool isPronoun(int wordCode);
43
44 extern void *generatePronounList(void);
45
46 #endif /* DICTIONARY_H_ */