Project

General

Profile

Support #1440

Surprising parser error: INT+DOT+IDENTIFIER

Added by John Abbott about 4 years ago. Updated over 2 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Parser/Interpreter
Target version:
Start date:
08 Mar 2020
Due date:
% Done:

0%

Estimated time:
Spent time:

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 about 4 years ago

I found this behaviour after deliberately feeding random input to CoCoA-5. It survived :-)

#2 Updated by Anna Maria Bigatti about 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

Also available in: Atom PDF