Ignore:
Timestamp:
Dec 19, 2017, 4:56:34 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Generate rules either to tokenizer and parser.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/Forms/UFormMain.pas

    r127 r129  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   Menus, ActnList, ComCtrls, UPersistentForm, URules;
     9  Menus, ActnList, ComCtrls, UPersistentForm, UGrammer;
    1010
    1111type
     
    7777
    7878uses
    79   UFormRules, UCore, UFormGrammer;
     79  UFormRules, UCore, UFormGrammer, UBuilder;
    8080
    8181resourcestring
     
    189189
    190190procedure TFormMain.ABuildCompilerExecute(Sender: TObject);
    191 begin
    192   Core.Grammer.BuildCompiler;
     191var
     192  Builder: TBuilder;
     193begin
     194  Builder := TBuilder.Create;
     195  try
     196    Builder.Grammer := Core.Grammer;
     197    Builder.BuildCompiler;
     198  finally
     199    FreeAndNil(Builder);
     200  end;
    193201end;
    194202
Note: See TracChangeset for help on using the changeset viewer.