Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#94 closed bug (wontfix)

The end of line (after ";") remains unintepreted untill the next "ENTER"!? ... feature or bug?

Reported by: Oleksandr Owned by: hannes
Priority: minor Milestone: Release 3-1-0
Component: singular-kernel Version:
Keywords: Cc:

Description

There seems to be something inconsistent with the behaivior of Interpretator concerning unfinished (without trailing ";") commands.

All the examples here were run in Singular interpretator directly:

ring r; BUG
;  // NO ERROR before the next ";"!!!
   ? `BUG` is undefined
   ? error occurred in STDIN line 2: `;`   <----- line is wrong!
ring r; a
> B
   ? `a` is undefined

This is probably done in order to make the following correct:

ring r; int BUG
= 1; 

But at the very least this leads to the confusing error message:

A
int B = 1;
   ? `A` is undefined
   ? error occurred in STDIN line 5: `int B = 1;`
   ? wrong type declaration. type 'help int;'

Just to make sure this will not be forgotten...

Change History (2)

comment:1 Changed 14 years ago by hannes

Resolution: wontfix
Status: newclosed

1) End of line is just a white space - no special meaning. 2) Errors are only found while interpreting them (like "not defined") or if no match to a syntax rule can be found - this means it can be some tokens (and also lines) later: this cannot be changed without rewriting bison. 3) error mesage says now: error in or before line "bla bla;"

comment:2 Changed 14 years ago by seelisch

Milestone: Release 3-1-0
Note: See TracTickets for help on using tickets.