'flatten' lexer defs