add global config for lexer/parser type