Ignore:
Timestamp:
Aug 9, 2010, 11:22:45 AM (14 years ago)
Author:
george
Message:

Added pascal producer code.
Added selection combobox for producer type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/Analyze/UPascalParser.pas

    r45 r46  
    9595
    9696    // Recovery: try to find nearest same code
    97     while FNextToken <> Code do
     97    while (FNextToken <> Code) and (FNextTokenType <> ttEndOfFile) do
    9898      GetNextToken;
    9999  end;
     
    482482        ErrorMessage(SUnknownIdentifier, [ReadCode]);
    483483      end;
    484     end else begin
     484    end else
     485    if FNextToken = ';' then
     486    else begin
    485487      Result := nil;
    486488      ErrorMessage(SIllegalExpression, [ReadCode]);
     
    576578  with SourceCode do begin
    577579    Expect('begin');
    578     while FNextToken <> 'end' do begin
     580    while (FNextToken <> 'end') and (FNextTokenType <> ttEndOfFile) do begin
    579581      Commands.Add(nil);
    580582      NewCommand := ParseCommand(CommonBlock);
Note: See TracChangeset for help on using the changeset viewer.