updated grammar syntax doc and put in example