Initial import of the ircii-pana-1.1-final source tree.
git-svn-id: svn://svn.code.sf.net/p/bitchx/code/tags/ircii-pana-1.1-final@1 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
34
dll/europa/cse476/lexicon.h
Normal file
34
dll/europa/cse476/lexicon.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef _LEXICON_H_
|
||||
#define _LEXICON_H_
|
||||
|
||||
#include "gnode.h"
|
||||
#include "list.h"
|
||||
|
||||
class Lexicon {
|
||||
public:
|
||||
Lexicon(char *fileName); // GOOD
|
||||
~Lexicon();
|
||||
bool lookupWord(char *word);
|
||||
bool lookupNext(void);
|
||||
genericNode *currNode(void); // GOOD
|
||||
|
||||
private:
|
||||
struct lexicalNode;
|
||||
typedef struct lexicalNode {
|
||||
genericNode *node;
|
||||
|
||||
lexicalNode *leftPtr;
|
||||
lexicalNode *rightPtr;
|
||||
};
|
||||
|
||||
void insert(genericNode *newWord); // GOOD
|
||||
void insert(genericNode *newWord, lexicalNode *root); // GOOD
|
||||
|
||||
bool lookupWord(lexicalNode *root, char *word);
|
||||
|
||||
lexicalNode *rootPtr;
|
||||
lexicalNode *currPtr;
|
||||
List *featureSeek;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user