Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
2xs
dx
Commits
802a0d87
Commit
802a0d87
authored
Jun 21, 2022
by
Samuel Hym
Browse files
Error out properly when an argument cannot be located
parent
272b7b36
Pipeline
#16942
passed with stages
in 7 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/CoqIR.v
View file @
802a0d87
...
...
@@ -167,9 +167,10 @@ Elpi Accumulate lp:{{
type
argumentSeparator
term
.
pred
resolveArg
i
:
argument
,
o
:
term
.
resolveArg
(
trm
T
)
T
.
resolveArg
(
trm
T
)
T
:-
!
.
resolveArg
(
str
"__"
)
argumentSeparator
:-
!
.
resolveArg
(
str
Name
)
T
:-
coq
.
locate
-
all
Name
(
Loc
::
_
),
resolveLoc
Loc
T
.
resolveArg
(
str
Name
)
T
:-
coq
.
locate
-
all
Name
(
Loc
::
_
),
resolveLoc
Loc
T
,
!
.
resolveArg
(
str
Name
)
_
:-
coq
.
error
"Cannot locate name"
Name
.
%
Split
the
argument
list
at
"__"
pred
splitArgs
i
:
list
argument
,
o
:
list
argument
,
o
:
list
argument
.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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