2013-08-16 01:54:01 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
|
|
|
|
Released under Apache 2.0 license as described in the file LICENSE.
|
|
|
|
|
|
|
|
Author: Leonardo de Moura
|
|
|
|
*/
|
|
|
|
#include "frontend.h"
|
|
|
|
#include "builtin.h"
|
|
|
|
|
|
|
|
namespace lean {
|
|
|
|
/**
|
|
|
|
\brief Initialize builtin notation.
|
|
|
|
*/
|
|
|
|
void init_builtin_notation(frontend & f) {
|
2013-08-16 16:07:45 +00:00
|
|
|
f.add_prefix("\u00ac", 40, const_name(mk_not_fn()));
|
2013-08-18 01:13:55 +00:00
|
|
|
f.add_infixr("&&", 35, const_name(mk_and_fn()));
|
2013-08-18 17:43:55 +00:00
|
|
|
f.add_infixr("/\\", 35, const_name(mk_and_fn()));
|
2013-08-16 16:07:45 +00:00
|
|
|
f.add_infixr("\u2227", 35, const_name(mk_and_fn()));
|
2013-08-18 01:13:55 +00:00
|
|
|
f.add_infixr("||", 30, const_name(mk_or_fn()));
|
2013-08-18 17:43:55 +00:00
|
|
|
f.add_infixr("\\/", 30, const_name(mk_or_fn()));
|
2013-08-16 16:07:45 +00:00
|
|
|
f.add_infixr("\u2228", 30, const_name(mk_or_fn()));
|
2013-08-18 01:13:55 +00:00
|
|
|
f.add_infixr("=>", 25, const_name(mk_implies_fn()));
|
2013-08-16 16:07:45 +00:00
|
|
|
f.add_infixr("\u21D2", 25, const_name(mk_implies_fn()));
|
2013-08-18 22:03:58 +00:00
|
|
|
f.add_infixr("<=>", 25, const_name(mk_iff_fn()));
|
|
|
|
f.add_infixr("\u21D4", 25, const_name(mk_iff_fn()));
|
2013-08-16 01:54:01 +00:00
|
|
|
}
|
|
|
|
}
|