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
Raphaël Cauderlier
Sigmaid
Commits
962d9ff9
Commit
962d9ff9
authored
Jul 01, 2014
by
Raphaël Cauderlier
Browse files
Parse dedukti error message when context is empty
parent
28c462e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
dk_parser.mly
View file @
962d9ff9
...
...
@@ -47,18 +47,27 @@
%%
prog
:
error_msg
context
EXPECTED
sty
DOT
INFERED
sty
DOT
prog
:
error_msg
INCONTEXT
context
EXPECTED
sty
DOT
INFERED
sty
DOT
{
$
1
()
;
$
2
()
;
$
3
()
;
Format
.
eprintf
"Expected: "
;
print_ty
$
4
;
print_ty
$
5
;
Format
.
eprintf
".
\n
Infered: "
;
print_ty
$
7
;
print_ty
$
8
;
Format
.
eprintf
".
\n
"
;
}
|
error_msg
EXPECTED
sty
INFERED
sty
{
$
1
()
;
Format
.
eprintf
"Expected: "
;
print_ty
$
3
;
Format
.
eprintf
".
\n
Infered: "
;
print_ty
$
5
;
Format
.
eprintf
".
\n
"
;
};
error_msg
:
ERRORFILE
LINE
COLUMN
ERR_TYPING
QTERM
INCONTEXT
error_msg
:
ERRORFILE
LINE
COLUMN
ERR_TYPING
QTERM
{
fun
()
->
Format
.
eprintf
"Error file: %s line:%s column:%s Error while typing '%s' in context:
\n
"
...
...
Write
Preview
Markdown
is supported
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