Move Cephelepod into deprecated_compiler, create captian.sh to handle bootstrapping kraken from backup or from Cephelepod
This commit is contained in:
32
deprecated_compiler/include/RegExState.h
Normal file
32
deprecated_compiler/include/RegExState.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef REGEXSTATE_H
|
||||
#define REGEXSTATE_H
|
||||
|
||||
#include "util.h"
|
||||
#include "Symbol.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class RegExState {
|
||||
public:
|
||||
RegExState(char inCharacter);
|
||||
RegExState();
|
||||
~RegExState();
|
||||
|
||||
void addNext(RegExState* nextState);
|
||||
bool characterIs(char inCharacter);
|
||||
std::vector<RegExState*> advance(char advanceCharacter);
|
||||
std::vector<RegExState*> getNextStates();
|
||||
|
||||
bool isGoal();
|
||||
std::string toString();
|
||||
std::string toString(RegExState* avoid);
|
||||
std::string toString(std::vector<RegExState*>* avoid);
|
||||
|
||||
char getCharacter();
|
||||
|
||||
private:
|
||||
std::vector<RegExState*> nextStates;
|
||||
char character;
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user