Ignore:
Timestamp:
Aug 9, 2017, 12:09:47 AM (7 years ago)
Author:
chronos
Message:
  • Added: RuleItem can be selected as terminal or non-terminal node.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/UCore.pas

    r109 r111  
    1919    { private declarations }
    2020  public
    21     Rules: TRules;
     21    Grammer: TGrammer;
    2222  end;
    2323
     
    3333procedure TCore.DataModuleCreate(Sender: TObject);
    3434begin
    35   Rules := TRules.Create;
    36   Rules.LoadFromXmlFile('pascal.grm');
     35  Grammer := TGrammer.Create;
     36  Grammer.LoadFromXmlFile('pascal.grm');
    3737end;
    3838
    3939procedure TCore.DataModuleDestroy(Sender: TObject);
    4040begin
    41   Rules.SaveToXmlFile('pascal.grm');
    42   FreeAndNil(Rules);
     41  Grammer.SaveToXmlFile('pascal.grm');
     42  FreeAndNil(Grammer);
    4343end;
    4444
Note: See TracChangeset for help on using the changeset viewer.