Continued work on Parser.

This commit is contained in:
Brad Arant committed 2025-12-16 16:51:44 -08:00
1 parent d54aec1f06
commit 0243468d44
4 files changed
+38 -8

No files matched your search

+10 -3
View File
@@ -15,11 +15,18 @@ namespace coreutils {
class Parser {
public:
Parser(int fd);
virtual ~Parser();
Parser(StreamReader &reader, Parser *parser);
virtual ~Parser();
int doParse(); <--- copy the buffer available in read to here and call parse();
bool checkParse(Parser &parser); <--- can be called in parse to see if the parsing should branch
virtual int parse();
private:
vector<MString> buffer;
MString buffer;
Parser *parser;
vector<Parser *> chain;
};