parsing langs.xml and lexer autodetection