Seeding from the 1.2 tree.
This commit is contained in:
34
dll/europa/cse476/grammar.h
Normal file
34
dll/europa/cse476/grammar.h
Normal 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
|
||||
Reference in New Issue
Block a user