Ignore:
Timestamp:
Feb 3, 2017, 10:48:19 PM (8 years ago)
Author:
chronos
Message:
  • Modified: Handling of constant and variables values with different type.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/interpreter/Parser3.pas

    r97 r98  
    409409begin
    410410  SetLength(ProgramCode^.Types.Items, 0);
    411   ProgramCode^.Types.Add(TypeCreate('string'));
     411  ProgramCode^.Types.Add(TypeCreate('string', btInteger));
    412412  TypeString := ProgramCode^.Types.GetLast;
    413   ProgramCode^.Types.Add(TypeCreate('Boolean'));
     413  ProgramCode^.Types.Add(TypeCreate('Boolean', btBoolean));
    414414  TypeBoolean := ProgramCode^.Types.GetLast;
    415   ProgramCode^.Types.Add(TypeCreate('Integer'));
     415  ProgramCode^.Types.Add(TypeCreate('Integer', btInteger));
    416416  TypeInteger := ProgramCode^.Types.GetLast;
    417   ProgramCode^.Types.Add(TypeCreate('Char'));
     417  ProgramCode^.Types.Add(TypeCreate('Char', btChar));
    418418  TypeChar := ProgramCode^.Types.GetLast;
    419   ProgramCode^.Types.Add(TypeCreate('Array'));
     419  ProgramCode^.Types.Add(TypeCreate('Array', btArray));
    420420  TypeArray := ProgramCode^.Types.GetLast;
    421421
Note: See TracChangeset for help on using the changeset viewer.