Argument Parsing

- Added argument categorization, and a colorful diagnostic output
  in debug mode.
- Localized all argument parsing in Arguments object, while still
  allowing specific commands to choose which elements are parsed
  from the command line.
This commit is contained in:
Paul Beckingham
2011-06-04 14:30:45 -04:00
parent 644d027a87
commit b4c1e47ab4
4 changed files with 366 additions and 23 deletions

View File

@@ -58,8 +58,21 @@ public:
void extract_filter ();
void extract_modifications ();
*/
void extract_sequence (std::vector <int>&);
bool is_attr (const std::string&);
bool is_attmod (const std::string&);
bool is_subst (const std::string&);
bool is_pattern (const std::string&);
bool extract_attr (const std::string&, std::string&, std::string&);
bool extract_attmod (const std::string&, std::string&, std::string&, std::string&, std::string&);
bool extract_subst (const std::string&, std::string&, std::string&, bool&);
bool extract_pattern (const std::string&, std::string&);
bool valid_modifier (const std::string&);
/*
void extract_sequence (std::vector <int>&);
void extract_uuids (std::vector <std::string>&);
void extract_attrs ();
void extract_words ();