Feature #38
Hasty "Premature end of file"
Status: | Assigned | Start date: | ||
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Compiler | |||
Target version: | - | |||
Platform: | Triage Stage: | |||
Resolution: |
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.
History
#1
Updated by Alain Prouté about 17 years ago
- 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.