Continued work on parsing...

This commit is contained in:
Brad Arant committed 2025-12-31 16:56:00 -08:00
1 parent b5652e26cc
commit d79697775b
4 files changed
+10 -9

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ namespace coreutils {
} }
int LineParser::parse() { int LineParser::parse() {
+1 -1
View File
@@ -11,7 +11,7 @@ namespace coreutils {
public: public:
LineParser(StreamReader &reader); LineParser(StreamReader &reader);
virtual int parse(); int parse() override;
}; };
+3 -3
View File
@@ -7,15 +7,15 @@ namespace coreutils {
Parser::~Parser() {} Parser::~Parser() {}
int Parser::doParse() { Status Parser::doParse() {
buffer << reader.unparsed(); buffer << reader.unparsed();
reader.setParsed(); reader.setParsed();
} }
bool Parser::checkParse(Parser &parser); bool Parser::checkParse(Parser &parser);
int Parser::Parse() { Status Parser::parse() {
return Status::COMPLETE;
} }
} }
+5 -4
View File
@@ -26,8 +26,9 @@ namespace coreutils {
/// ///
/// ///
enum class Status : int { enum class Status {
COMPLETE,
INCOMPLETE
}; };
/// ///
@@ -40,7 +41,7 @@ namespace coreutils {
/// doParse is the entry and re-entry point method to continue the parsing process. /// doParse is the entry and re-entry point method to continue the parsing process.
/// ///
int doParse(); Status doParse();
/// ///
/// Inside of parse() you can call another parser object with the checkParse method to /// Inside of parse() you can call another parser object with the checkParse method to
@@ -53,7 +54,7 @@ namespace coreutils {
/// ///
/// ///
virtual int parse(); virtual Status parse();
protected: protected:
MString buffer; MString buffer;