Add support for basic bracket expressions

Implemented as union of the characters/ranges within the brackets.
Inverse bracket expressions [^...] are not yet handled by the dfa
generator.
Rebase onto master