Define grammar to be accepted

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>