Conventions (ref)

Alex Zimin edited this page Jul 11, 2011 · 3 revisions
Clone this wiki locally

<< Back to Reference Manual.


We often use EBNF notation of our own.

answers =
  { '42' }
means that answers are a '42' repeated at least once.
name = 'Douglas' [ 'Noel' ] 'Adams'
means that name is either Douglas Adams or Douglas Noel Adams. So the middle name is optional.
character =
  | ford
  | trillian
  | zephod
means that character is any of the specified characters.