projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f20801
)
AUTORECODE: Always report parse errors.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 7 Jul 2019 18:48:22 +0000
(11:48 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 7 Jul 2019 18:48:22 +0000
(11:48 -0700)
The code didn't always report syntax errors that it found.
src/language/stats/autorecode.c
patch
|
blob
|
history
diff --git
a/src/language/stats/autorecode.c
b/src/language/stats/autorecode.c
index f6ea46241634e3d9b0d8e14db119e7bdadd532fe..751d727d32ea40402d65fd8693a32205bb1b586f 100644
(file)
--- a/
src/language/stats/autorecode.c
+++ b/
src/language/stats/autorecode.c
@@
-207,10
+207,16
@@
cmd_autorecode (struct lexer *lexer, struct dataset *ds)
arc->blank_valid = false;
}
else
- goto error;
+ {
+ lex_error_expecting (lexer, "VALID", "MISSING");
+ goto error;
+ }
}
else
- goto error;
+ {
+ lex_error_expecting (lexer, "DESCENDING", "PRINT", "GROUP", "BLANK");
+ goto error;
+ }
}
if (lex_token (lexer) != T_ENDCMD)