Continued work on Parser.
This commit is contained in:
1 parent
d54aec1f06
commit
0243468d44
4 files changed
+38
-8
No files matched your search
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user