close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 16 years ago

Last modified 16 years ago

#743 closed defect

Syntax error makes TOL break down — at Version 2

Reported by: César Pérez Álvarez Owned by: Víctor de Buen Remiro
Priority: normal Milestone: Mantainance
Component: Kernel Version: 1.1.7
Severity: major Keywords:
Cc:

Description (last modified by Víctor de Buen Remiro)

If you compile this function makes TOL break down with no error message.

Set GrammarSet(Text nameStruct)
{
  Set grammarSet = Case 
  (
    nameStruct == "ModelOutput",
    SetOfText
    ( 
      "Text", "Text", "Date", "Date", 
      "Real", "Real", "Set", "Set", "Set"
    ),
    nameStruct == "ModelInput",
    SetOfText
    ( 
      "Text", "Text", "Real", "Text", 
      "Text", "Set"
    )
    1, Empty
  );
  grammarSet
};

Actually, there is a syntax error in the last condition clause. There is a missing comma.

Change History (2)

comment:1 Changed 16 years ago by Jorge

Comfirmed also at trunk version in Linux.

comment:2 Changed 16 years ago by Víctor de Buen Remiro

Description: modified (diff)
Status: newaccepted
Note: See TracTickets for help on using tickets.