Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
857a0937
Commit
857a0937
authored
Nov 09, 2016
by
Robbert Krebbers
Browse files
Make notations && and || in heap_lang parsing only.
parent
199f0386
Pipeline
#2977
failed with stage
in 3 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
heap_lang/notation.v
View file @
857a0937
...
...
@@ -85,8 +85,10 @@ Notation "e1 ;; e2" := (LamV BAnon e2%E e1%E)
(
at
level
100
,
e2
at
level
200
,
format
"e1 ;; e2"
)
:
val_scope
.
(* Shortcircuit Boolean connectives *)
Notation
"e1 && e2"
:
=
(
If
e1
%
E
e2
%
E
(
Lit
(
LitBool
false
)))
:
expr_scope
.
Notation
"e1 || e2"
:
=
(
If
e1
%
E
(
Lit
(
LitBool
true
))
e2
%
E
)
:
expr_scope
.
Notation
"e1 && e2"
:
=
(
If
e1
%
E
e2
%
E
(
Lit
(
LitBool
false
)))
(
parsing
only
)
:
expr_scope
.
Notation
"e1 || e2"
:
=
(
If
e1
%
E
(
Lit
(
LitBool
true
))
e2
%
E
)
(
parsing
only
)
:
expr_scope
.
(** Notations for option *)
Notation
NONE
:
=
(
InjL
#()).
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment