Parser generator for regular expression enhanced syntaxes