adbrown85/edo — Issue #16: Add a SimpleCharacterSet
Author: adbrown85
Created: 2011-12-18 06:13:25+00:00
State: open

To help make the pattern utilities easier to use, there should be a basic implementation of _CharacterSet_ that can be made from a single character, a string, or a set of characters. Named constructors would be kind of nice here, but we should probably give the programmer the option of how the object gets allocated.

SimpleCharacterSet -> CharacterSet
+ SimpleCharacterSet(c : char)
+ SimpleCharacterSet(str : string)
+ SimpleCharacterSet(characters : set)
+ contains(c : char)
- characters: set