Project

General

Profile

Actions

Feature #38

open

Hasty "Premature end of file"

Feature #38: Hasty "Premature end of file"

Added by SpiceGuid - over 18 years ago. Updated over 18 years ago.

Status:
Assigned
Priority:
Low
Assignee:
Category:
Compiler
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform:
Resolution:
Triage Stage:

Description

I report this not so serious bug for documentation only (it could eventually puzzle some beginner). As trivial as it seems patching it probably involves tweaking the lexical analyser, quite not a really exciting thing to do.

type Yell : woow.

If no newline (end of file just following the dot) then i get this error:

(line 1, column 18) Error E111:    Premature end of file within a paragraph.

Updated by Alain Prouté over 18 years ago Actions #1

  • Status changed from New to Assigned

This is because the dot alone is not the same token as a dot followed by a space (or newline). This 'feature' has been added so as to allow the recognition of the end of a paragraph by PyramIDE (for syntactic coloring). But actually, I'm not sure it's still needed, because PyramIDE has a complete syntactic analyser.

This is also why in the dot notation 'a.f' 'f' must immediately follow the dot. The dot followed by a space is not an operator.

No definitive decision has been taken.

Actions

Also available in: PDF Atom