Fixed a problem with php5.3 and closures in the Grammar definition