Still working out parsing buffer stuff.

This commit is contained in:
Brad Arant committed 2025-12-17 17:07:14 -08:00
1 parent 0243468d44
commit ccfab5aecf
9 files changed
+78 -13

No files matched your search

+29 -3
View File
@@ -15,16 +15,42 @@ namespace coreutils {
class Parser {
public:
///
///
///
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
///
/// doParse is the entry and re-entry point method to continue the parsing process.
///
int doParse();
///
/// Inside of parse() you can call another parser object with the checkParse method to
/// determine if the parsing should branch to the new passed parsing object.
///
bool checkParse(Parser &parser); <--- can be called in parse to see if the parsing should branch
///
///
///
virtual int parse();
private:
protected:
MString buffer;
private:
Parser *parser;
vector<Parser *> chain;