fix Issue 10605 - Lambda grammar is not sufficient

Improve Lambda grammar and describe rewrite rule
Merge pull request #351 from 9rnsr/fix_lambda

Issue 10605 - Lambda grammar is not sufficient