remove useless condition for local variable declaration check
add grammar rule for lambda