Prevent using $this inside closures in the Grammar definition to assure php 5.3 compatibility.