Changeset 19 for branches/DelphiToC/UPascalCompiler.pas
- Timestamp:
- Apr 9, 2009, 2:08:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DelphiToC/UPascalCompiler.pas
r14 r19 5 5 uses 6 6 Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 7 Dialogs, StdCtrls, UPascalSource, UCodeProducer, UPascalParser, UAssemblerSource; 7 Dialogs, StdCtrls, UPascalSource, UCodeProducer, UPascalParser, UAssemblerSource, 8 UCSource; 8 9 9 10 type 10 11 TCompiler = class 11 12 private 12 ProgramCode: TProgram;13 13 FOnErrorMessage: TOnErrorMessage; 14 14 procedure ErrorMessage(Text: string); 15 15 public 16 ProgramCode: TProgram; 16 17 SourceCode: TStringList; 17 18 Parser: TPascalParser; … … 38 39 SourceCode := TStringList.Create; 39 40 ProgramCode := TProgram.Create; 40 Producer := T AssemblerProducer.Create;41 Producer := TCProducer.Create; 41 42 Producer.ProgramCode := ProgramCode; 42 43 Parser := TPascalParser.Create; 43 44 Parser.SourceCode := SourceCode; 45 Parser.OnErrorMessage := ErrorMessage; 44 46 end; 45 47
Note:
See TracChangeset
for help on using the changeset viewer.