Add new grammar definition and helper ruby script