return retval;
}
- lex_error (s->lexer, NULL);
+ lex_error (s->lexer, _("Syntax error expecting matrix expression."));
return NULL;
}
}
else
{
- lex_error (s->lexer, NULL);
+ lex_error (s->lexer, _("Syntax error expecting ACCEPT or OMIT or "
+ "a number for MISSING."));
goto error;
}
}
}
else
{
- lex_error (s->lexer, NULL);
+ lex_error (s->lexer, _("Syntax error expecting OMIT or a number "
+ "for SYSMIS."));
goto error;
}
}
2 | COMPUTE x.
| ^
-matrix.sps:3.11: error: COMPUTE: Syntax error.
+matrix.sps:3.11: error: COMPUTE: Syntax error expecting matrix expression.
3 | COMPUTE x=.
| ^
10 | READ x/FIELD=1 TO 10 BY 6.
| ^
-matrix.sps:11.13: error: READ: Syntax error.
+matrix.sps:11.13: error: READ: Syntax error expecting matrix expression.
11 | READ x/SIZE=!.
| ^
END MATRIX.
])
AT_CHECK([pspp matrix.sps], [1], [dnl
-matrix.sps:2.7: error: WRITE: Syntax error.
+matrix.sps:2.7: error: WRITE: Syntax error expecting matrix expression.
2 | WRITE !.
| ^
16 | GET x/NAMES=!.
| ^
-matrix.sps:17.15: error: GET: Syntax error.
+matrix.sps:17.15: error: GET: Syntax error expecting ACCEPT or OMIT or a number
+for MISSING.
17 | GET x/MISSING=!.
| ^
-matrix.sps:18.14: error: GET: Syntax error.
+matrix.sps:18.14: error: GET: Syntax error expecting OMIT or a number for
+SYSMIS.
18 | GET x/SYSMIS=!.
| ^
END MATRIX.
])
AT_CHECK([pspp matrix.sps], [1], [dnl
-matrix.sps:2.6: error: SAVE: Syntax error.
+matrix.sps:2.6: error: SAVE: Syntax error expecting matrix expression.
2 | SAVE !.
| ^
4 | SAVE 1/VARIABLES=!.
| ^
-matrix.sps:5.14: error: SAVE: Syntax error.
+matrix.sps:5.14: error: SAVE: Syntax error expecting matrix expression.
5 | SAVE 1/NAMES=!.
| ^
END MATRIX.
])
AT_CHECK([pspp matrix.sps], [1], [dnl
-matrix.sps:2.7: error: MSAVE: Syntax error.
+matrix.sps:2.7: error: MSAVE: Syntax error expecting matrix expression.
2 | MSAVE !.
| ^
7 | MSAVE 1/SNAMES=!.
| ^
-matrix.sps:8.15: error: MSAVE: Syntax error.
+matrix.sps:8.15: error: MSAVE: Syntax error expecting matrix expression.
8 | MSAVE 1/SPLIT=!.
| ^
-matrix.sps:9.16: error: MSAVE: Syntax error.
+matrix.sps:9.16: error: MSAVE: Syntax error expecting matrix expression.
9 | MSAVE 1/FACTOR=!.
| ^