operator.bnf 447 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
\begin{syntax}
  op-char-1 ::= "=" | "<" | ">" | "~" ;
  \
  op-char-2 ::= "+" | "-";
  \
  op-char-3 ::= "*" | "/" | "%" ;
  \
  op-char-4 ::= "!" | "$" | "&" | "?" | "@" | "^" | "." | ":" | "|" | "#" ;
  \
  op-char ::= op-char-1 | op-char-2 | op-char-3 | op-char-4 ;
  \
12
  infix-op-1 ::= op-char* op-char-1 op-char* ;
13
  \
14 15 16 17 18
  infix-op ::= op-char+ ;
  \
  prefix-op ::= op-char+ ;
  \
  bang-op ::= "!" op-char-4* | "?" op-char-4* ;%
19
\end{syntax}