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:
Kevin Easton
2008-02-25 09:25:32 +00:00
commit 28febcfea9
1429 changed files with 250653 additions and 0 deletions

32
dll/europa/cse476/p1.cpp Normal file
View File

@@ -0,0 +1,32 @@
#include <iostream.h>
#include <fstream.h>
#include <string.h>
#include "parse.h"
#include "grammar.h"
#include "lexicon.h"
#include "list.h"
#include "gnode.h"
Grammar grammar("grammar.txt");
Lexicon lexicon("lexicon.txt");
int main(int argc, char *argv[]) {
char *sentence = "Jack was happy to see a dog.";
// cout << "[nlp]$ " << sentence << endl;
// parse(sentence);
sentence = new char[1000];
cout << "[nlp]$ " << flush;
cin.getline(sentence, 999);
// while(cin) {
if(strlen(sentence))
parse(sentence);
// cout << "[nlp]$ " << flush;
// cin.getline(sentence, 999);
// }
cout << "Bye bye..." << endl;
}