Continued work on parsing...

This commit is contained in:
Brad Arant 2025-12-31 16:56:00 -08:00
parent b5652e26cc
commit d79697775b
4 changed files with 10 additions and 9 deletions

View File

@ -9,7 +9,7 @@ namespace coreutils {
}
int LineParser::parse() {

View File

@ -11,7 +11,7 @@ namespace coreutils {
public:
LineParser(StreamReader &reader);
virtual int parse();
int parse() override;
};

View File

@ -7,15 +7,15 @@ namespace coreutils {
Parser::~Parser() {}
int Parser::doParse() {
Status Parser::doParse() {
buffer << reader.unparsed();
reader.setParsed();
}
bool Parser::checkParse(Parser &parser);
int Parser::Parse() {
Status Parser::parse() {
return Status::COMPLETE;
}
}

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.
///
int doParse();
Status doParse();
///
/// 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:
MString buffer;