Progress on mingw driver
This commit is contained in:
@@ -46,6 +46,7 @@ private:
|
||||
std::string lua_expression_;
|
||||
StringVec words_;
|
||||
std::string syntax_;
|
||||
std::string prompt_;
|
||||
|
||||
void split_words();
|
||||
|
||||
@@ -56,6 +57,10 @@ public:
|
||||
// Get the recommended action.
|
||||
int action() const { return action_; }
|
||||
|
||||
// Fetch the stored prompt. Also clears the stored prompt. You should fetch
|
||||
// and print the prompt after 'add' or 'clear'.
|
||||
std::string get_prompt();
|
||||
|
||||
// When action is DO_COMMAND, get the command words.
|
||||
const StringVec &words() const { return words_; }
|
||||
|
||||
@@ -66,12 +71,11 @@ public:
|
||||
const std::string &syntax() const { return syntax_; }
|
||||
|
||||
// Add a line of text that was just read from the console.
|
||||
// If more input is needed, stores the ">> " prompt.
|
||||
void add(std::string line);
|
||||
|
||||
// Read a line of text from stdin and add it.
|
||||
void add_stdin();
|
||||
|
||||
// Clear the state.
|
||||
// Call 'clear' after executing an action.
|
||||
// Stores the "> " prompt.
|
||||
void clear();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user