EBNF - kvmamich/ideavim GitHub Wiki

Extended Backus–Naur Form

Conventions

  1. Each meta-identifier is written as one or more words joined together by hyphens.
  2. Meta-identifier ending with "-symbol" is a name of a terminal symbol.

Symbols

repetition-symbol               *
except-symbol                   -
concatenate-symbol              ,
definition-separator-symbol     |
defining-symbol                 =
terminator-symbol               ;

Bracket pairs

'   first-quote-symbol       first-quote-symbol   '
"   second-quote-symbol     second-quote-symbol "
(*  start-comment-symbol    end-comment-symbol  *)
(   start-group-symbol      end-group-symbol    )
[   start-option-symbol     end-option-symbol   ]
{   start-repeat-symbol     end-repeat-symbol   }
?   special-sequence        special-sequence    ?