PDA

View Full Version : Unit and Program Help needed.



EmbranceII
27-02-2005, 04:58 PM
OK,on another topic,i stated i wanted to make my own little programming language.

so i got run into some problems.Here i post the code:

main file

Program DOSER;

Uses
crt,graph,EU_Input;

BEGIN
WriteLn ('Dos-Er v0.1');
WriteLn ('BETA Version');




END.

unit i made:




Unit EU_Input;

Interface
{The standard piece of code to make a unit}

Uses
crt;
{Units used}

{Functions For Input}
Procedure Print(text:string);


Implementation
{How each function and procedure work}

begin
{Print a text into a new line}
Procedure Print(text:string);
Begin
WriteLn(text);
End;

{Print a text into a specific section of the screen}




end.



OK the error i get:
eu_input.pas(19,11) Illegal Exression
eu_input.pas(19,11) Illegal Exression
eu_input.pas(19,11) Identifier ; expected but PRINT found.

Please someone help me with this.

Eriken
27-02-2005, 05:08 PM
Remove the Begin between Implementation and the Procedure in the Unit.
_____
Eriken

EmbranceII
27-02-2005, 07:48 PM
Thanks!