Make parts of the parser generic to prepare the implementation of raw regexps.
Fix some warnings.
Merge remote-tracking branch 'kali/master'