Results 1 to 3 of 3

Thread: Unit and Program Help needed.

  1. #1

    Unit and Program Help needed.

    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
    Code:
    Program DOSER;
    
    Uses
    crt,graph,EU_Input;
    
    BEGIN
    WriteLn ('Dos-Er v0.1');
    WriteLn ('BETA Version');
    
    
    
    
    END.
    unit i made:

    Code:
    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.

  2. #2

    Unit and Program Help needed.

    Remove the Begin between Implementation and the Procedure in the Unit.
    _____
    Eriken

  3. #3

    Unit and Program Help needed.

    Thanks!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •