CPCWiki forum

General Category => Programming => Topic started by: funkheld on 08:37, 07 September 19

Title: what is "No more text"?
Post by: funkheld on 08:37, 07 September 19

Hi good afternoon.
what is "no more text" please? with compile "C" or compile "T"?

Thank you.
greeting
Title: Re: what is "No more text"?
Post by: AMSDOS on 09:42, 07 September 19
Line 530 is missing the full stop '.' after the END, all Pascal programs do that at the end of the main area of code.

BEGIN

END.



If it's a PROCEDURE or FUNCTION they use the Semi-Colon ';'


PROCEDURE bla;
BEGIN
END;

FUNCTION ha : CHAR;
BEGIN
END;


If in the event the following line is an 'end;' then the previous line doesn't need a semi-colon, but in your case because the last line is missing the Full Stop on line 530, the Compiler thinks there's more code to follow, but there isn't so issues a No more text error.

A lot of that is documented using Illustrations in the Hisoft Pascal manual, which has helped me a lot in understanding the workings of that compiler, though Pascal programs from early ACU are available through the Hisoft Pascal 4T Page on CPCWiki (https://www.cpcwiki.eu/index.php/Hisoft_Pascal_4T) as well.
Title: Re: what is "No more text"?
Post by: funkheld on 20:50, 07 September 19
hello thanks.


greeting
Powered by SMFPacks Menu Editor Mod