Enhancement - Integration

- Integrated Cmd object.
- Enhanced Context object with dispatch and shadow methods.
- Fixed bug in Context::parse.
- Implemented command parsing.
- Fixed Sequence bug, and unit tests.
This commit is contained in:
Paul Beckingham 2009-06-07 16:00:22 -04:00
parent 190c6b53fc
commit d702ba8f24
7 changed files with 128 additions and 35 deletions

View file

@ -68,6 +68,12 @@ bool Sequence::valid (const std::string& input) const
if (range.size () < 1 ||
range.size () > 2)
return false;
if (range.size () == 1 && !validId (range[0]))
return false;
if (range.size () == 2 && !validId (range[1]))
return false;
}
return true;