Added flags to LexerGenerator

This commit allows specifying regex flags when adding new rules to a
lexer generator, for both, token and ignore patterns
Merge pull request #38 from MarkusH/lexer-regex-flags

Added flags to LexerGenerator