Argument Parsing

- Added proper handling for sequences, in that they must be contiguous.
- Added placeholder code for default command, and automatic info report.
- Eliminated Context::parse.
- Eliminated Context::run Timer, because when it goes out of scope, it
  adds timing messages to the deubg output, which at the end of Context::run
  has already been displayed.  In addition, the Context::dispatch timer
  is about 0.2 milliseconds shorter, so the two are redundant.
This commit is contained in:
Paul Beckingham
2011-06-04 18:42:33 -04:00
parent 19aa78a922
commit f9c1820740
5 changed files with 198 additions and 321 deletions

View File

@@ -54,11 +54,8 @@ public:
std::string combine ();
bool find_command (std::string&);
/*
void extract_filter ();
void extract_modifications ();
*/
bool is_command (const std::vector <std::string>&, std::string&);
bool is_attr (const std::string&);
bool is_attmod (const std::string&);
bool is_subst (const std::string&);
@@ -76,6 +73,8 @@ public:
bool extract_tag (const std::string&, char&, std::string&);
/*
void extract_filter ();
void extract_modifications ();
void extract_words ();
*/