Ignore:
Timestamp:
Nov 10, 2009, 9:11:50 AM (15 years ago)
Author:
george
Message:
  • Přidáno: Kostra zobrazování strukturálního stromu.
  • Upraveno: Zobrazení kódu pomocí SynEditu namísto Memo.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Void/UCompilator.pas

    r14 r15  
    150150          with TCommand(Commands[Commands.Add(TCommand.Create)]) do begin
    151151            Name := CommandName;
    152             Parser.ParseNextToken;
    153152            if Command.Parameters.Count > 0 then begin
     153              Parser.ParseNextToken;
    154154              if (Parser.TokenType = ttSymbol) and (Parser.TokenValue = '(') then begin
    155155                Parser.ParseNextToken;
     
    227227      end;
    228228      Parser.ParseNextToken;
     229      if (Parser.TokenType <> ttSymbol) and (Parser.TokenValue = ';') then
     230        DoError('Expected ;');
     231      Parser.ParseNextToken;
    229232      if Parser.TokenType <> ttWhiteSpace then DoError('Expected white space');
    230233    end else DoError('Expected identifier');
Note: See TracChangeset for help on using the changeset viewer.