Changeset 54 for branches/DelphiToC/Analyze/UParser.pas
- Timestamp:
- Aug 10, 2010, 11:54:18 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/Analyze/UParser.pas
r53 r54 54 54 procedure ParseUnit(SourceCode: TModule); 55 55 procedure ParseProgram(SourceCode: TModule); 56 procedure ParseAll(SourceCode: TProgram);57 56 procedure ParseCommonBlock(SourceCode: TCommonBlock; EndSymbol: char = ';'); 58 57 function ParseCommand(SourceCode: TCommonBlock): TCommand; … … 651 650 ModuleType := mdProgram; 652 651 Expect(';'); 653 end 654 else 655 Name := ''; 652 end else Name := ''; 656 653 657 654 // Uses section … … 664 661 665 662 procedure TPascalParser.ParseUnit(SourceCode: TModule); 663 var 664 NewModule: TModule; 666 665 begin 667 666 Expect('unit'); 668 with TModule(ProgramCode.Modules[0])do667 with Sourcecode do 669 668 begin 670 669 Name := ReadCode; … … 677 676 678 677 { TParserProgram } 679 680 procedure TPascalParser.ParseAll(SourceCode: TProgram);681 var682 I: integer;683 begin684 with SourceCode do685 begin686 for I := 0 to Modules.Count - 1 do687 ParseModule(TModule(Modules[I]));688 end;689 end;690 678 691 679 { TParserCommonBlock }
Note:
See TracChangeset
for help on using the changeset viewer.