Seeding from the 1.2 tree.

This commit is contained in:
Dan Mashal
2013-01-01 03:00:55 -08:00
parent d8c87c4ded
commit 87b806a563
1424 changed files with 260320 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
#ifndef _GRAMMAR_H_
#define _GRAMMAR_H_
#include "list.h"
#include "gnode.h"
class Grammar {
public:
Grammar(char *fileName); // GOOD
~Grammar();
List *currLine(void);
List *findMatch(genericNode *obj);
List *findNext(void);
void goTop(void);
bool goNext(void);
private:
struct grammarLine;
typedef struct grammarLine {
List *line;
grammarLine *nextPtr;
};
void insert(char *text); // GOOD
void insert(List *ruleLine); // GOOD
grammarLine *rootPtr;
grammarLine *currPtr;
genericNode *searchObj;
};
#endif