Support #1440
Surprising parser error: INT+DOT+IDENTIFIER
Description
CoCoA correctly gives a parse error given the input 8.a;
The error message is:
--> ERROR: Expecting type RECORD or PACKAGE, but found type INT --> 8.a; --> ^
With the input a.8;
we get the error message:
--> ERROR: I was expecting an identifier but I've found the number "8" --> a.8; --> ^
Are these error messages OK? Should we, could we, make them clearer?
History
#1 Updated by John Abbott over 4 years ago
I found this behaviour after deliberately feeding random input to CoCoA-5. It survived :-)
#2 Updated by Anna Maria Bigatti over 4 years ago
vandal ;-)
#3 Updated by John Abbott over 2 years ago
- Target version changed from CoCoA-5.4.0 to CoCoA-5.4.2