[lexer] inmplement 'for' loop
[config] change deprecated use of multiple cfgs in the top level