grammar + scala