Skip to content

Conventions (ref)

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

<< Back to Reference Manual.

EBNF

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 =
    arthur
  | ford
  | trillian
  | zephod
means that character is any of the specified characters.
Clone this wiki locally