Ignore:
Timestamp:
Dec 27, 2017, 6:05:11 PM (7 years ago)
Author:
chronos
Message:
  • Added: Lookup tables can be defined and their usage set from grammer rules.
File:
1 edited

Legend:

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

    r136 r137  
    1616  TFormMain = class(TForm)
    1717    ABuildCompiler: TAction;
     18    ALookupTables: TAction;
    1819    AToolbarVisible: TAction;
    1920    AProjectOpenRecent: TAction;
     
    3839    MenuItem13: TMenuItem;
    3940    MenuItem2: TMenuItem;
     41    MenuItem3: TMenuItem;
    4042    MenuItemRecent: TMenuItem;
    4143    MenuItemToolbar: TMenuItem;
     
    6062    ToolButton5: TToolButton;
    6163    ToolButton6: TToolButton;
     64    ToolButton7: TToolButton;
    6265    procedure ABuildCompilerExecute(Sender: TObject);
     66    procedure ALookupTablesExecute(Sender: TObject);
    6367    procedure AToolbarVisibleExecute(Sender: TObject);
    6468    procedure AExitExecute(Sender: TObject);
     
    96100
    97101uses
    98   UFormRules, UCore, UFormGrammer, UBuilder;
     102  UFormRules, UCore, UFormGrammer, UBuilder, UFormLookupTables;
    99103
    100104resourcestring
     
    300304end;
    301305
     306procedure TFormMain.ALookupTablesExecute(Sender: TObject);
     307var
     308  FormLookupTables: TFormLookupTables;
     309begin
     310  FormLookupTables := TFormLookupTables.Create(nil);
     311  try
     312    FormLookupTables.LookupTables := Core.Grammer.LookupTables;
     313    if FormLookupTables.ShowModal = mrOk then begin
     314
     315    end;
     316  finally
     317    FreeAndNil(FormLookupTables);
     318  end;
     319end;
     320
    302321procedure TFormMain.AToolbarVisibleExecute(Sender: TObject);
    303322begin
Note: See TracChangeset for help on using the changeset viewer.