Changeset 111 for branches/generator/UCore.pas
- Timestamp:
- Aug 9, 2017, 12:09:47 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator/UCore.pas
r109 r111 19 19 { private declarations } 20 20 public 21 Rules: TRules;21 Grammer: TGrammer; 22 22 end; 23 23 … … 33 33 procedure TCore.DataModuleCreate(Sender: TObject); 34 34 begin 35 Rules := TRules.Create;36 Rules.LoadFromXmlFile('pascal.grm');35 Grammer := TGrammer.Create; 36 Grammer.LoadFromXmlFile('pascal.grm'); 37 37 end; 38 38 39 39 procedure TCore.DataModuleDestroy(Sender: TObject); 40 40 begin 41 Rules.SaveToXmlFile('pascal.grm');42 FreeAndNil( Rules);41 Grammer.SaveToXmlFile('pascal.grm'); 42 FreeAndNil(Grammer); 43 43 end; 44 44
Note:
See TracChangeset
for help on using the changeset viewer.