Implemented grammer loading
This commit is contained in:
23
include/Symbol.h
Normal file
23
include/Symbol.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef SYMBOL_H
|
||||
#define SYMBOL_H
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
#endif
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
class Symbol {
|
||||
public:
|
||||
Symbol(std::string name, bool isTerminal);
|
||||
~Symbol();
|
||||
std::string toString();
|
||||
private:
|
||||
std::string name;
|
||||
bool isTerminal;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user