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
3 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ namespace coreutils {
public:
LineParser(StreamReader &reader);
virtual int parse();
int parse() override;
};
+3 -3
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;
}
}
+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.
///
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;