Add comments for unicode symbols, fix a typo
This commit is contained in:
parent
ce470f57db
commit
3f40953efc
2 changed files with 12 additions and 12 deletions
|
@ -12,16 +12,16 @@ namespace lean {
|
|||
\brief Initialize builtin notation.
|
||||
*/
|
||||
void init_builtin_notation(frontend & f) {
|
||||
f.add_prefix("\u00ac", 40, mk_not_fn());
|
||||
f.add_infixr("&&", 35, mk_and_fn());
|
||||
f.add_infixr("/\\", 35, mk_and_fn());
|
||||
f.add_infixr("\u2227", 35, mk_and_fn());
|
||||
f.add_infixr("||", 30, mk_or_fn());
|
||||
f.add_infixr("\\/", 30, mk_or_fn());
|
||||
f.add_infixr("\u2228", 30, mk_or_fn());
|
||||
f.add_infixr("=>", 25, mk_implies_fn());
|
||||
f.add_infixr("\u21D2", 25, mk_implies_fn());
|
||||
f.add_infixr("<=>", 25, mk_iff_fn());
|
||||
f.add_infixr("\u21D4", 25, mk_iff_fn());
|
||||
f.add_prefix("\u00ac", 40, mk_not_fn()); // "¬"
|
||||
f.add_infixr("&&", 35, mk_and_fn()); // "&&"
|
||||
f.add_infixr("/\\", 35, mk_and_fn()); // "/\"
|
||||
f.add_infixr("\u2227", 35, mk_and_fn()); // "∧"
|
||||
f.add_infixr("||", 30, mk_or_fn()); // "||"
|
||||
f.add_infixr("\\/", 30, mk_or_fn()); // "\/"
|
||||
f.add_infixr("\u2228", 30, mk_or_fn()); // "∨"
|
||||
f.add_infixr("=>", 25, mk_implies_fn()); // "=>"
|
||||
f.add_infixr("\u21D2", 25, mk_implies_fn()); // "⇒"
|
||||
f.add_infixr("<=>", 25, mk_iff_fn()); // "<=>"
|
||||
f.add_infixr("\u21D4", 25, mk_iff_fn()); // "⇔"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ namespace lean {
|
|||
/**
|
||||
\brief Operator fixity.
|
||||
Prefix: ID _
|
||||
Infixl: _ ID _
|
||||
Infix: _ ID _
|
||||
Infixl: _ ID _ (left associative)
|
||||
Infixr: _ ID _ (right associative)
|
||||
Postfix: _ ID
|
||||
|
|
Loading…
Reference in a new issue