Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paolo G. Giarrusso
iris
Commits
457c12fe
Commit
457c12fe
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Make some overlapping heap_lang notations parsing only.
parent
6e697ccc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
heap_lang/notation.v
+5
-5
5 additions, 5 deletions
heap_lang/notation.v
with
5 additions
and
5 deletions
heap_lang/notation.v
+
5
−
5
View file @
457c12fe
...
...
@@ -91,15 +91,15 @@ Notation "e1 || e2" :=
(
If
e1
%
E
(
Lit
(
LitBool
true
))
e2
%
E
)
(
only
parsing
)
:
expr_scope
.
(** Notations for option *)
Notation
NONE
:=
(
InjL
#
())
.
Notation
SOME
x
:=
(
InjR
x
)
.
Notation
NONE
:=
(
InjL
#
())
(
only
parsing
)
.
Notation
SOME
x
:=
(
InjR
x
)
(
only
parsing
)
.
Notation
NONEV
:=
(
InjLV
#
())
.
Notation
SOMEV
x
:=
(
InjRV
x
)
.
Notation
NONEV
:=
(
InjLV
#
())
(
only
parsing
)
.
Notation
SOMEV
x
:=
(
InjRV
x
)
(
only
parsing
)
.
Notation
"'match:' e0 'with' 'NONE' => e1 | 'SOME' x => e2 'end'"
:=
(
Match
e0
BAnon
e1
x
%
bind
e2
)
(
e0
,
e1
,
x
,
e2
at
level
200
)
:
expr_scope
.
(
e0
,
e1
,
x
,
e2
at
level
200
,
only
parsing
)
:
expr_scope
.
Notation
"'match:' e0 'with' 'SOME' x => e2 | 'NONE' => e1 'end'"
:=
(
Match
e0
BAnon
e1
x
%
bind
e2
)
(
e0
,
e1
,
x
,
e2
at
level
200
,
only
parsing
)
:
expr_scope
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment