Lexer/RegExs now work on a very basic level. Regular expressions have not been fully implemented, but the structure is there. It creates trivial regexs that only accept a specified sequence, no actual regular expression power.
This commit is contained in:
@@ -15,6 +15,7 @@ class RegEx {
|
||||
|
||||
int longMatch(std::string stringToMatch);
|
||||
std::string getPattern();
|
||||
std::string toString();
|
||||
private:
|
||||
std::string pattern;
|
||||
RegExState* begin;
|
||||
|
||||
Reference in New Issue
Block a user