Grammar for vars and types attributes