[doc] add reference grammar