Formal grammar / technical documentation style guides consistently define:
[ ... ] = optional
{ ... } = repetition
| = alternatives
Reply on news.ycombinator.com