update pbase grammar