wrote grammar using Xcore model