lexer rewritten to support lookahead. started parsing of lambdas.