Grammar example for Freeswitch

I already asked this question on the FreeSwitch forums but I have not gotten an answer. I am trying to understand how grammar works on FreeSwitch. Would anybody have a pointer to a resource explaining:

- What the expected format is.
- Where the grammar files go
- An example!

Thank you!