Ignore:
Timestamp:
Dec 19, 2017, 4:56:34 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Generate rules either to tokenizer and parser.
Location:
branches/generator/Forms
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/Forms/UFormGrammer.lfm

    r124 r129  
    77  ClientHeight = 346
    88  ClientWidth = 548
     9  DesignTimePPI = 120
    910  OnShow = FormShow
    10   LCLVersion = '1.6.4.0'
     11  LCLVersion = '1.8.0.6'
    1112  object Label1: TLabel
    1213    Left = 15
  • branches/generator/Forms/UFormGrammer.pas

    r126 r129  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   URules;
     9  UGrammer;
    1010
    1111type
  • branches/generator/Forms/UFormMain.lfm

    r128 r129  
    77  ClientHeight = 653
    88  ClientWidth = 1050
     9  DesignTimePPI = 120
    910  Menu = MainMenu1
    1011  OnClose = FormClose
    1112  OnCloseQuery = FormCloseQuery
    1213  OnShow = FormShow
    13   LCLVersion = '1.6.4.0'
     14  LCLVersion = '1.8.0.6'
    1415  object MemoBNF: TMemo
    1516    Left = 0
     
    8081        Height = 22
    8182        Top = 0
    82         Width = 8
    8383        Style = tbsSeparator
    8484      end
  • 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
  • branches/generator/Forms/UFormRule.lfm

    r122 r129  
    88  ClientHeight = 514
    99  ClientWidth = 663
     10  DesignTimePPI = 120
    1011  OnCreate = FormCreate
    1112  OnDestroy = FormDestroy
    1213  OnShow = FormShow
    13   LCLVersion = '1.6.4.0'
     14  LCLVersion = '1.8.0.6'
    1415  object ButtonOk: TButton
    1516    Left = 376
     
    9495    TabOrder = 4
    9596  end
     97  object Label2: TLabel
     98    Left = 312
     99    Height = 20
     100    Top = 52
     101    Width = 37
     102    Caption = 'Lavel:'
     103    ParentColor = False
     104  end
     105  object ComboBoxLevel: TComboBox
     106    Left = 376
     107    Height = 28
     108    Top = 48
     109    Width = 125
     110    ItemHeight = 20
     111    Style = csDropDownList
     112    TabOrder = 5
     113  end
    96114end
  • branches/generator/Forms/UFormRule.pas

    r126 r129  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   ComCtrls, ActnList, Menus, URules, UFormRuleItems;
     9  ComCtrls, ActnList, Menus, UGrammer, UFormRuleItems;
    1010
    1111type
     
    1717    ButtonCancel: TButton;
    1818    CheckBoxCreateNode: TCheckBox;
     19    ComboBoxLevel: TComboBox;
    1920    EditName: TEdit;
    2021    Label1: TLabel;
     22    Label2: TLabel;
    2123    ListView1: TListView;
    2224    PageControl1: TPageControl;
     
    7072
    7173procedure TFormRule.FormCreate(Sender: TObject);
     74var
     75  I: TRuleLevel;
    7276begin
    7377  FormRuleItems := TFormRuleItems.Create(nil);
     
    7680  FormRuleItems.Show;
    7781  UsedByRules := TStringList.Create;
     82  ComboBoxLevel.Items.Clear;
     83  for I := Low(TRuleLevel) to High(RuleLevelText) do
     84    ComboBoxLevel.Items.Add(RuleLevelText[I]);
    7885end;
    7986
     
    9198  EditName.Text := Rule.Name;
    9299  CheckBoxCreateNode.Checked := Rule.CreateSourceNode;
     100  ComboBoxLevel.ItemIndex := Integer(Rule.Level);
    93101  FormRuleItems.LoadData(Rule.Items);
    94102end;
     
    99107  Rule.Name := EditName.Text;
    100108  Rule.CreateSourceNode := CheckBoxCreateNode.Checked;
     109  Rule.Level := TRuleLevel(ComboBoxLevel.ItemIndex);
    101110  FormRuleItems.SaveData(Rule.Items);
    102111end;
  • branches/generator/Forms/UFormRuleItem.lfm

    r123 r129  
    77  ClientHeight = 400
    88  ClientWidth = 656
     9  DesignTimePPI = 120
    910  OnClose = FormClose
    1011  OnCreate = FormCreate
    1112  OnDestroy = FormDestroy
    1213  OnShow = FormShow
    13   LCLVersion = '1.6.4.0'
     14  LCLVersion = '1.8.0.6'
    1415  object ButtonCancel: TButton
    1516    Left = 176
  • branches/generator/Forms/UFormRuleItem.pas

    r126 r129  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
    9   ComCtrls, URules;
     9  ComCtrls, UGrammer;
    1010
    1111type
  • branches/generator/Forms/UFormRuleItems.lfm

    r128 r129  
    77  ClientHeight = 467
    88  ClientWidth = 636
     9  DesignTimePPI = 120
    910  OnCreate = FormCreate
    1011  OnShow = FormShow
    11   LCLVersion = '1.6.4.0'
     12  LCLVersion = '1.8.0.6'
    1213  object ListView1: TListView
    1314    Left = 8
     
    9697    object MenuItem1: TMenuItem
    9798      Action = AAdd
    98       Bitmap.Data = {
    99         36040000424D3604000000000000360000002800000010000000100000000100
    100         2000000000000004000064000000640000000000000000000000000000000000
    101         0000000000000000000000000000000000000000000000000000000000000000
    102         0000000000000000000000000000000000000000000000000000000000000000
    103         000000000000000000000000000000000000D4D4D4FFB2B2B2FFB2B2B2FFD4D4
    104         D4FF000000000000000000000000000000000000000000000000000000000000
    105         0000000000000000000000000000709B70FF004A00FF004800FF4E764EFFB2B2
    106         B2FF000000000000000000000000000000000000000000000000000000000000
    107         0000000000000000000000000000004E00FF00C800FF00C400FF004800FFB2B2
    108         B2FF000000000000000000000000000000000000000000000000000000000000
    109         0000000000000000000000000000005000FF00CA00FF00C600FF004A00FFB2B2
    110         B2FF000000000000000000000000000000000000000000000000000000000000
    111         0000000000000000000000000000005300FF00CE00FF00CA00FF004C00FFB2B2
    112         B2FF00000000000000000000000000000000000000000000000000000000D4D4
    113         D4FFB2B2B2FFB2B2B2FFB2B2B2FF005400FF00D200FF00CE00FF004E00FFB2B2
    114         B2FFB2B2B2FFB2B2B2FFB2B2B2FFB2B2B2FFD4D4D4FF0000000070A670FF005E
    115         00FF005C00FF005A00FF005800FF005600FF00D600FF00D000FF005000FF004E
    116         00FF004C00FF004A00FF004A00FF4E764EFFB2B2B2FF00000000006200FF8CFE
    117         8CFF00EA00FF00E600FF00E200FF00DE00FF00DA00FF00D400FF00D000FF00CC
    118         00FF00C800FF00C400FF00C200FF004800FFB2B2B2FF00000000006400FFECFF
    119         ECFF8CFE8CFF8CFE8CFF8CFE8CFF8CFE8CFF00DE00FF00D900FF00D400FF00D0
    120         00FF00CC00FF00C800FF00C400FF004A00FFD4D4D4FF0000000070A970FF0064
    121         00FF006400FF006200FF006000FF006000FF8CFE8CFF00DD00FF005800FF0056
    122         00FF005400FF005300FF005000FF709C70FF0000000000000000000000000000
    123         0000000000000000000000000000006000FF8CFE8CFF00E000FF005A00FFB2B2
    124         B2FF000000000000000000000000000000000000000000000000000000000000
    125         0000000000000000000000000000006200FF8CFE8CFF00E500FF005C00FFB2B2
    126         B2FF000000000000000000000000000000000000000000000000000000000000
    127         0000000000000000000000000000006400FF8CFE8CFF00E800FF005E00FFB2B2
    128         B2FF000000000000000000000000000000000000000000000000000000000000
    129         0000000000000000000000000000006400FFECFFECFF8CFE8CFF006000FFD4D4
    130         D4FF000000000000000000000000000000000000000000000000000000000000
    131         000000000000000000000000000070A970FF006400FF006200FF70A670FF0000
    132         0000000000000000000000000000000000000000000000000000
    133       }
    13499    end
    135100    object MenuItem2: TMenuItem
    136101      Action = AModify
    137       Bitmap.Data = {
    138         36040000424D3604000000000000360000002800000010000000100000000100
    139         2000000000000004000064000000640000000000000000000000986B37FF976A
    140         36FF966935FF966734FF956633FF946532FF946531FF936430FF92622FFF9261
    141         2EFF91602DFF90602CFF905F2BFF8F5D2AFF8E5C29FF8D5B28FF996C38FFF8F7
    142         F6FFF8F7F5FFF7F6F5FFF6F6F4FFF6F5F3FFF5F5F3FFF5F4F2FFF4F3F1FFF4F3
    143         F1FFF3F2F0FFF3F2EFFFF2F1EFFFF2F0EEFFF1F0EDFF8E5D29FF996D3AFFF9F8
    144         F7FF959594FF878787FF9B9A9AFFF7F6F4FFF6F5F3FFF6F5F3FFF5F4F2FFF4F3
    145         F1FFF4F3F1FFF3F2F0FFF3F2EFFFF2F1EFFFF2F1EEFF8F5E2AFF9A6E3BFFF9F9
    146         F8FF7C7C7CFFC4C4C4FF878787FFF7F6F5FF7A7A7AFF787878FF747474FF7171
    147         70FF6D6D6CFF696968FF656565FF616161FFF2F1EFFF905F2BFF9B6F3CFFFAF9
    148         F8FFBEBEBDFF929292FFBCBCBBFFF8F7F6FFF7F7F5FFF7F6F4FFF6F5F4FFF6F5
    149         F3FFF5F4F2FFF5F4F2FFF4F3F1FFF4F2F0FFF3F2F0FF91602DFF9C703DFFFAFA
    150         F9FFFAF9F9FFF9F9F8FFF9F8F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6F5FFF6F5
    151         F4FFF6F5F3FFF5F4F3FFF5F4F2FFF4F3F1FFF4F3F0FF92612EFF9D723EFFFBFB
    152         FAFF9F9F9EFF7F7F7FFFAEAEADFFF9F8F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6
    153         F5FFF6F6F4FFF6F5F3FFF5F4F3FFF5F4F2FFF4F3F1FF92622FFF9D7340FFFCFB
    154         FBFF818181FFC4C4C4FF8F8F8FFFFAF9F8FF7B7B7AFF797979FF757574FF7271
    155         71FF6D6D6DFF696969FF666665FF626261FFF5F4F2FF936430FF9E7441FFFCFC
    156         FCFFB5B5B5FF848484FFBEBDBDFFFAFAF9FFFAF9F8FFF9F9F7FFF9F8F7FFF8F8
    157         F6FFF8F7F5FFF7F6F5FFF7F6F4FFF6F5F3FFF6F5F3FF946531FF9F7542FFFDFD
    158         FCFFFCFCFCFFFCFCFBFFFBFBFAFFFBFAFAFFFAFAF9FFFAF9F8FFF9F9F8FFF9F8
    159         F7FFF8F8F6FFF8F7F6FFF7F6F5FFF7F6F4FFF6F5F4FF956633FFA07643FFFEFD
    160         FDFF8C8C8CFF525252FFA4A4A4FFFBFBFAFFFBFBFAFFFAFAF9FFFAF9F8FFF9F9
    161         F8FFF9F8F7FFF8F8F6FFF8F7F6FFF7F7F5FFF7F6F4FF966734FFA17844FFFEFE
    162         FEFF5F5F5FFF949494FF535353FFFCFCFBFF7B7B7BFF797979FF757575FF7272
    163         72FF6E6E6EFF6A6A69FF666666FF626262FFF7F7F5FF966935FFA17946FFFFFF
    164         FFFF878787FF5D5D5DFFA0A0A0FFFDFCFCFFFCFCFBFFFCFBFBFFFBFBFAFFFBFA
    165         F9FFFAFAF9FFFAF9F8FFF9F8F7FFF8F8F7FFF8F7F6FF976A36FFA27A47FFFFFF
    166         FFFFFFFFFFFFFEFEFEFFFEFEFEFFFDFDFDFFFDFDFCFFFCFCFBFFFCFBFBFFFBFB
    167         FAFFFBFAF9FFFAFAF9FFFAF9F8FFF9F9F7FFF9F8F7FF986B37FFA37B48FFBEA2
    168         7FFFBEA17EFFBDA17DFFBDA07CFFBD9F7CFFBC9F7BFFBB9E7AFFBB9D7AFFBB9D
    169         79FFBA9C78FFB99B78FFB99A77FFB89A76FFB89975FF996C39FFA37B48FFA37B
    170         48FFA27A47FFA27946FFA17845FFA07744FFA07643FF9F7542FF9E7441FF9E73
    171         40FF9D723FFF9C713EFF9C703DFF9B6F3CFF9A6E3BFF9A6D3AFF
    172       }
    173102    end
    174103    object MenuItem3: TMenuItem
    175104      Action = ARemove
    176       Bitmap.Data = {
    177         36040000424D3604000000000000360000002800000010000000100000000100
    178         2000000000000004000064000000640000000000000000000000000000000000
    179         0000000000000000000000000000000000000000000000000000000000000000
    180         0000000000000000000000000000000000000000000000000000000000000000
    181         0000000000000000000000000000000000000000000000000000000000000000
    182         0000000000000000000000000000000000003A3AE2FFC0C0C0FF000000000000
    183         000000000000000000003A3AE2FFC0C0C0FF0000000000000000000000000000
    184         0000000000000000000000000000000000000000000000000000000000000000
    185         0000000000003A3AE2FF3A3AE2FF3A3AE2FFC0C0C0FF00000000000000000000
    186         00000000000000000000000000003A3AE2FFC0C0C0FF00000000000000000000
    187         0000000000003A3AE2FF3A3AE2FF3A3AE2FFC0C0C0FF00000000000000000000
    188         000000000000000000003A3AE2FFC0C0C0FF0000000000000000000000000000
    189         000000000000000000003838E0FF3838E0FF3838E0FFC0C0C0FF000000000000
    190         0000000000003838E0FF3838E0FFC0C0C0FF0000000000000000000000000000
    191         00000000000000000000000000003535DDFF3535DDFF3535DDFFC0C0C0FF0000
    192         00003535DDFF3535DDFFC0C0C0FF000000000000000000000000000000000000
    193         0000000000000000000000000000000000003232DAFF3232DAFF3232DAFF3232
    194         DAFF3232DAFFC0C0C0FF00000000000000000000000000000000000000000000
    195         000000000000000000000000000000000000000000002F2FD7FF2F2FD7FF2F2F
    196         D7FFC0C0C0FF0000000000000000000000000000000000000000000000000000
    197         0000000000000000000000000000000000002C2CD4FF2C2CD4FF2C2CD4FF2C2C
    198         D4FF2C2CD4FFC0C0C0FF00000000000000000000000000000000000000000000
    199         00000000000000000000000000002929D1FF2929D1FF2929D1FFC0C0C0FF0000
    200         00002929D1FFC0C0C0FF00000000000000000000000000000000000000000000
    201         0000000000002626CEFF2626CEFF2626CEFF2626CEFFC0C0C0FF000000000000
    202         0000000000002626CEFF2626CEFFC0C0C0FF0000000000000000000000000000
    203         00002020C8FF2020C8FF2020C8FF2020C8FFC0C0C0FF00000000000000000000
    204         000000000000000000002020C8FF2020C8FFC0C0C0FF00000000000000000000
    205         00001818C0FF1818C0FFC0C0C0FF000000000000000000000000000000000000
    206         00000000000000000000000000001818C0FF1818C0FFC0C0C0FF000000000000
    207         0000000000000000000000000000000000000000000000000000000000000000
    208         0000000000000000000000000000000000000000000000000000000000000000
    209         0000000000000000000000000000000000000000000000000000000000000000
    210         0000000000000000000000000000000000000000000000000000
    211       }
    212105    end
    213106    object MenuItem4: TMenuItem
    214107      Action = AMoveUp
    215       Bitmap.Data = {
    216         36040000424D3604000000000000360000002800000010000000100000000100
    217         2000000000000004000064000000640000000000000000000000000000000000
    218         0000000000000000000000000000000000000000000000000000000000000000
    219         0000000000000000000000000000000000000000000000000000000000000000
    220         0000000000000000000000000000000000FF000000FF000000FF000000FF0000
    221         00FF000000FF000000FF00000000000000000000000000000000000000000000
    222         0000000000000000000000000000000000FFFF442CFFFF3C28FFFF3522FFFF2E
    223         1EFFFF2619FF000000FF00000000000000000000000000000000000000000000
    224         0000000000000000000000000000000000FFFF5337FFFF4C32FFFF442CFFFF3C
    225         28FFFF3623FF000000FF00000000000000000000000000000000000000000000
    226         0000000000000000000000000000000000FFFF6341FFFF5C3BFFFF5437FFFF4C
    227         32FFFF442CFF000000FF00000000000000000000000000000000000000000000
    228         0000000000000000000000000000000000FFFF724AFFFF6B46FFFF6441FFFF5D
    229         3CFFFF5437FF000000FF00000000000000000000000000000000000000000000
    230         0000000000000000000000000000000000FFFF8255FFFF7A4FFFFF744BFFFF6C
    231         46FFFF6441FF000000FF00000000000000000000000000000000000000000000
    232         0000000000000000000000000000000000FFFF915FFFFF8A5AFFFF8255FFFF7C
    233         51FFFF744CFF000000FF00000000000000000000000000000000000000000000
    234         00FF000000FF000000FF000000FF000000FFFFA169FFFF9A65FFFF9360FFFF8A
    235         5AFFFF8456FF000000FF000000FF000000FF000000FF000000FF000000000000
    236         0000000000FFFFC681FFFFBF7DFFFFB878FFFFB073FFFFAA6EFFFFA269FFFF9A
    237         65FFFF9360FFFF8C5BFFFF8456FFFF7C51FF000000FF00000000000000000000
    238         000000000000000000FFFFCF87FFFFC882FFFFC17DFFFFB878FFFFB174FFFFAA
    239         6EFFFFA269FFFF9A65FFFF9461FF000000FF0000000000000000000000000000
    240         00000000000000000000000000FFFFD78CFFFFD088FFFFC882FFFFC17DFFFFBA
    241         79FFFFB374FFFFAA6EFF000000FF000000000000000000000000000000000000
    242         0000000000000000000000000000000000FFFFE092FFFFD88CFFFFD088FFFFC8
    243         82FFFFC27EFF000000FF00000000000000000000000000000000000000000000
    244         000000000000000000000000000000000000000000FFFFE797FFFFE092FFFFD8
    245         8CFF000000FF0000000000000000000000000000000000000000000000000000
    246         00000000000000000000000000000000000000000000000000FFFFF09CFF0000
    247         00FF000000000000000000000000000000000000000000000000000000000000
    248         0000000000000000000000000000000000000000000000000000000000FF0000
    249         0000000000000000000000000000000000000000000000000000
    250       }
    251108    end
    252109    object MenuItem5: TMenuItem
    253110      Action = AMoveDown
    254       Bitmap.Data = {
    255         36040000424D3604000000000000360000002800000010000000100000000100
    256         2000000000000004000064000000640000000000000000000000000000000000
    257         00000000000000000000000000000000000000000000000000FF000000000000
    258         0000000000000000000000000000000000000000000000000000000000000000
    259         000000000000000000000000000000000000000000FFFFF09CFF000000FF0000
    260         0000000000000000000000000000000000000000000000000000000000000000
    261         0000000000000000000000000000000000FFFFD88CFFFFE092FFFFE797FF0000
    262         00FF000000000000000000000000000000000000000000000000000000000000
    263         00000000000000000000000000FFFFC27EFFFFC882FFFFD088FFFFD88CFFFFE0
    264         92FF000000FF0000000000000000000000000000000000000000000000000000
    265         000000000000000000FFFFAA6EFFFFB374FFFFBA79FFFFC17DFFFFC882FFFFD0
    266         88FFFFD78CFF000000FF00000000000000000000000000000000000000000000
    267         0000000000FFFF9461FFFF9A65FFFFA269FFFFAA6EFFFFB174FFFFB878FFFFC1
    268         7DFFFFC882FFFFCF87FF000000FF000000000000000000000000000000000000
    269         00FFFF7C51FFFF8456FFFF8C5BFFFF9360FFFF9A65FFFFA269FFFFAA6EFFFFB0
    270         73FFFFB878FFFFBF7DFFFFC681FF000000FF0000000000000000000000FF0000
    271         00FF000000FF000000FF000000FFFF8456FFFF8A5AFFFF9360FFFF9A65FFFFA1
    272         69FF000000FF000000FF000000FF000000FF000000FF00000000000000000000
    273         00000000000000000000000000FFFF744CFFFF7C51FFFF8255FFFF8A5AFFFF91
    274         5FFF000000FF0000000000000000000000000000000000000000000000000000
    275         00000000000000000000000000FFFF6441FFFF6C46FFFF744BFFFF7A4FFFFF82
    276         55FF000000FF0000000000000000000000000000000000000000000000000000
    277         00000000000000000000000000FFFF5437FFFF5D3CFFFF6441FFFF6B46FFFF72
    278         4AFF000000FF0000000000000000000000000000000000000000000000000000
    279         00000000000000000000000000FFFF442CFFFF4C32FFFF5437FFFF5C3BFFFF63
    280         41FF000000FF0000000000000000000000000000000000000000000000000000
    281         00000000000000000000000000FFFF3623FFFF3C28FFFF442CFFFF4C32FFFF53
    282         37FF000000FF0000000000000000000000000000000000000000000000000000
    283         00000000000000000000000000FFFF2619FFFF2E1EFFFF3522FFFF3C28FFFF44
    284         2CFF000000FF0000000000000000000000000000000000000000000000000000
    285         00000000000000000000000000FF000000FF000000FF000000FF000000FF0000
    286         00FF000000FF0000000000000000000000000000000000000000000000000000
    287         0000000000000000000000000000000000000000000000000000000000000000
    288         0000000000000000000000000000000000000000000000000000
    289       }
    290111    end
    291112  end
  • branches/generator/Forms/UFormRuleItems.pas

    r128 r129  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ComCtrls,
    9   Menus, ActnList, StdCtrls, URules, UFormRuleItem;
     9  Menus, ActnList, StdCtrls, UGrammer, UFormRuleItem;
    1010
    1111type
  • branches/generator/Forms/UFormRules.lfm

    r128 r129  
    77  ClientHeight = 611
    88  ClientWidth = 857
     9  DesignTimePPI = 120
    910  OnClose = FormClose
    1011  OnCreate = FormCreate
    1112  OnShow = FormShow
    12   LCLVersion = '1.6.4.0'
     13  LCLVersion = '1.8.0.6'
    1314  object CoolBar1: TCoolBar
    1415    Left = 0
     
    7677      item
    7778        Caption = 'Items'
    78         Width = 500
     79        Width = 400
    7980      end   
    8081      item
    8182        Caption = 'Char length'
    8283        Width = 80
     84      end   
     85      item
     86        Caption = 'Level'
     87        Width = 70
    8388      end>
    8489    MultiSelect = True
     
    126131    object MenuItem1: TMenuItem
    127132      Action = AAdd
    128       Bitmap.Data = {
    129         36040000424D3604000000000000360000002800000010000000100000000100
    130         2000000000000004000064000000640000000000000000000000000000000000
    131         0000000000000000000000000000000000000000000000000000000000000000
    132         0000000000000000000000000000000000000000000000000000000000000000
    133         000000000000000000000000000000000000D4D4D4FFB2B2B2FFB2B2B2FFD4D4
    134         D4FF000000000000000000000000000000000000000000000000000000000000
    135         0000000000000000000000000000709B70FF004A00FF004800FF4E764EFFB2B2
    136         B2FF000000000000000000000000000000000000000000000000000000000000
    137         0000000000000000000000000000004E00FF00C800FF00C400FF004800FFB2B2
    138         B2FF000000000000000000000000000000000000000000000000000000000000
    139         0000000000000000000000000000005000FF00CA00FF00C600FF004A00FFB2B2
    140         B2FF000000000000000000000000000000000000000000000000000000000000
    141         0000000000000000000000000000005300FF00CE00FF00CA00FF004C00FFB2B2
    142         B2FF00000000000000000000000000000000000000000000000000000000D4D4
    143         D4FFB2B2B2FFB2B2B2FFB2B2B2FF005400FF00D200FF00CE00FF004E00FFB2B2
    144         B2FFB2B2B2FFB2B2B2FFB2B2B2FFB2B2B2FFD4D4D4FF0000000070A670FF005E
    145         00FF005C00FF005A00FF005800FF005600FF00D600FF00D000FF005000FF004E
    146         00FF004C00FF004A00FF004A00FF4E764EFFB2B2B2FF00000000006200FF8CFE
    147         8CFF00EA00FF00E600FF00E200FF00DE00FF00DA00FF00D400FF00D000FF00CC
    148         00FF00C800FF00C400FF00C200FF004800FFB2B2B2FF00000000006400FFECFF
    149         ECFF8CFE8CFF8CFE8CFF8CFE8CFF8CFE8CFF00DE00FF00D900FF00D400FF00D0
    150         00FF00CC00FF00C800FF00C400FF004A00FFD4D4D4FF0000000070A970FF0064
    151         00FF006400FF006200FF006000FF006000FF8CFE8CFF00DD00FF005800FF0056
    152         00FF005400FF005300FF005000FF709C70FF0000000000000000000000000000
    153         0000000000000000000000000000006000FF8CFE8CFF00E000FF005A00FFB2B2
    154         B2FF000000000000000000000000000000000000000000000000000000000000
    155         0000000000000000000000000000006200FF8CFE8CFF00E500FF005C00FFB2B2
    156         B2FF000000000000000000000000000000000000000000000000000000000000
    157         0000000000000000000000000000006400FF8CFE8CFF00E800FF005E00FFB2B2
    158         B2FF000000000000000000000000000000000000000000000000000000000000
    159         0000000000000000000000000000006400FFECFFECFF8CFE8CFF006000FFD4D4
    160         D4FF000000000000000000000000000000000000000000000000000000000000
    161         000000000000000000000000000070A970FF006400FF006200FF70A670FF0000
    162         0000000000000000000000000000000000000000000000000000
    163       }
    164133    end
    165134    object MenuItem2: TMenuItem
    166135      Action = AModify
    167       Bitmap.Data = {
    168         36040000424D3604000000000000360000002800000010000000100000000100
    169         2000000000000004000064000000640000000000000000000000986B37FF976A
    170         36FF966935FF966734FF956633FF946532FF946531FF936430FF92622FFF9261
    171         2EFF91602DFF90602CFF905F2BFF8F5D2AFF8E5C29FF8D5B28FF996C38FFF8F7
    172         F6FFF8F7F5FFF7F6F5FFF6F6F4FFF6F5F3FFF5F5F3FFF5F4F2FFF4F3F1FFF4F3
    173         F1FFF3F2F0FFF3F2EFFFF2F1EFFFF2F0EEFFF1F0EDFF8E5D29FF996D3AFFF9F8
    174         F7FF959594FF878787FF9B9A9AFFF7F6F4FFF6F5F3FFF6F5F3FFF5F4F2FFF4F3
    175         F1FFF4F3F1FFF3F2F0FFF3F2EFFFF2F1EFFFF2F1EEFF8F5E2AFF9A6E3BFFF9F9
    176         F8FF7C7C7CFFC4C4C4FF878787FFF7F6F5FF7A7A7AFF787878FF747474FF7171
    177         70FF6D6D6CFF696968FF656565FF616161FFF2F1EFFF905F2BFF9B6F3CFFFAF9
    178         F8FFBEBEBDFF929292FFBCBCBBFFF8F7F6FFF7F7F5FFF7F6F4FFF6F5F4FFF6F5
    179         F3FFF5F4F2FFF5F4F2FFF4F3F1FFF4F2F0FFF3F2F0FF91602DFF9C703DFFFAFA
    180         F9FFFAF9F9FFF9F9F8FFF9F8F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6F5FFF6F5
    181         F4FFF6F5F3FFF5F4F3FFF5F4F2FFF4F3F1FFF4F3F0FF92612EFF9D723EFFFBFB
    182         FAFF9F9F9EFF7F7F7FFFAEAEADFFF9F8F7FFF8F8F7FFF8F7F6FFF7F7F5FFF7F6
    183         F5FFF6F6F4FFF6F5F3FFF5F4F3FFF5F4F2FFF4F3F1FF92622FFF9D7340FFFCFB
    184         FBFF818181FFC4C4C4FF8F8F8FFFFAF9F8FF7B7B7AFF797979FF757574FF7271
    185         71FF6D6D6DFF696969FF666665FF626261FFF5F4F2FF936430FF9E7441FFFCFC
    186         FCFFB5B5B5FF848484FFBEBDBDFFFAFAF9FFFAF9F8FFF9F9F7FFF9F8F7FFF8F8
    187         F6FFF8F7F5FFF7F6F5FFF7F6F4FFF6F5F3FFF6F5F3FF946531FF9F7542FFFDFD
    188         FCFFFCFCFCFFFCFCFBFFFBFBFAFFFBFAFAFFFAFAF9FFFAF9F8FFF9F9F8FFF9F8
    189         F7FFF8F8F6FFF8F7F6FFF7F6F5FFF7F6F4FFF6F5F4FF956633FFA07643FFFEFD
    190         FDFF8C8C8CFF525252FFA4A4A4FFFBFBFAFFFBFBFAFFFAFAF9FFFAF9F8FFF9F9
    191         F8FFF9F8F7FFF8F8F6FFF8F7F6FFF7F7F5FFF7F6F4FF966734FFA17844FFFEFE
    192         FEFF5F5F5FFF949494FF535353FFFCFCFBFF7B7B7BFF797979FF757575FF7272
    193         72FF6E6E6EFF6A6A69FF666666FF626262FFF7F7F5FF966935FFA17946FFFFFF
    194         FFFF878787FF5D5D5DFFA0A0A0FFFDFCFCFFFCFCFBFFFCFBFBFFFBFBFAFFFBFA
    195         F9FFFAFAF9FFFAF9F8FFF9F8F7FFF8F8F7FFF8F7F6FF976A36FFA27A47FFFFFF
    196         FFFFFFFFFFFFFEFEFEFFFEFEFEFFFDFDFDFFFDFDFCFFFCFCFBFFFCFBFBFFFBFB
    197         FAFFFBFAF9FFFAFAF9FFFAF9F8FFF9F9F7FFF9F8F7FF986B37FFA37B48FFBEA2
    198         7FFFBEA17EFFBDA17DFFBDA07CFFBD9F7CFFBC9F7BFFBB9E7AFFBB9D7AFFBB9D
    199         79FFBA9C78FFB99B78FFB99A77FFB89A76FFB89975FF996C39FFA37B48FFA37B
    200         48FFA27A47FFA27946FFA17845FFA07744FFA07643FF9F7542FF9E7441FF9E73
    201         40FF9D723FFF9C713EFF9C703DFF9B6F3CFF9A6E3BFF9A6D3AFF
    202       }
    203136    end
    204137    object MenuItem3: TMenuItem
    205138      Action = ARemove
    206       Bitmap.Data = {
    207         36040000424D3604000000000000360000002800000010000000100000000100
    208         2000000000000004000064000000640000000000000000000000000000000000
    209         0000000000000000000000000000000000000000000000000000000000000000
    210         0000000000000000000000000000000000000000000000000000000000000000
    211         0000000000000000000000000000000000000000000000000000000000000000
    212         0000000000000000000000000000000000003A3AE2FFC0C0C0FF000000000000
    213         000000000000000000003A3AE2FFC0C0C0FF0000000000000000000000000000
    214         0000000000000000000000000000000000000000000000000000000000000000
    215         0000000000003A3AE2FF3A3AE2FF3A3AE2FFC0C0C0FF00000000000000000000
    216         00000000000000000000000000003A3AE2FFC0C0C0FF00000000000000000000
    217         0000000000003A3AE2FF3A3AE2FF3A3AE2FFC0C0C0FF00000000000000000000
    218         000000000000000000003A3AE2FFC0C0C0FF0000000000000000000000000000
    219         000000000000000000003838E0FF3838E0FF3838E0FFC0C0C0FF000000000000
    220         0000000000003838E0FF3838E0FFC0C0C0FF0000000000000000000000000000
    221         00000000000000000000000000003535DDFF3535DDFF3535DDFFC0C0C0FF0000
    222         00003535DDFF3535DDFFC0C0C0FF000000000000000000000000000000000000
    223         0000000000000000000000000000000000003232DAFF3232DAFF3232DAFF3232
    224         DAFF3232DAFFC0C0C0FF00000000000000000000000000000000000000000000
    225         000000000000000000000000000000000000000000002F2FD7FF2F2FD7FF2F2F
    226         D7FFC0C0C0FF0000000000000000000000000000000000000000000000000000
    227         0000000000000000000000000000000000002C2CD4FF2C2CD4FF2C2CD4FF2C2C
    228         D4FF2C2CD4FFC0C0C0FF00000000000000000000000000000000000000000000
    229         00000000000000000000000000002929D1FF2929D1FF2929D1FFC0C0C0FF0000
    230         00002929D1FFC0C0C0FF00000000000000000000000000000000000000000000
    231         0000000000002626CEFF2626CEFF2626CEFF2626CEFFC0C0C0FF000000000000
    232         0000000000002626CEFF2626CEFFC0C0C0FF0000000000000000000000000000
    233         00002020C8FF2020C8FF2020C8FF2020C8FFC0C0C0FF00000000000000000000
    234         000000000000000000002020C8FF2020C8FFC0C0C0FF00000000000000000000
    235         00001818C0FF1818C0FFC0C0C0FF000000000000000000000000000000000000
    236         00000000000000000000000000001818C0FF1818C0FFC0C0C0FF000000000000
    237         0000000000000000000000000000000000000000000000000000000000000000
    238         0000000000000000000000000000000000000000000000000000000000000000
    239         0000000000000000000000000000000000000000000000000000000000000000
    240         0000000000000000000000000000000000000000000000000000
    241       }
    242139    end
    243140  end
  • branches/generator/Forms/UFormRules.pas

    r128 r129  
    77uses
    88  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs,
    9   ComCtrls, ActnList, Menus, URules, UListViewSort;
     9  ComCtrls, ActnList, Menus, UGrammer, UListViewSort;
    1010
    1111type
     
    147147    Item.SubItems.Add(Items.GetString);
    148148    Item.SubItems.Add(IntToStr(Items.GetCharLength));
     149    Item.SubItems.Add(RuleLevelText[Level]);
    149150  end;
    150151end;
     
    175176      1: Result := CompareString(BooleanText[TRule(Item1).CreateSourceNode], BooleanText[TRule(Item2).CreateSourceNode]);
    176177      2: Result := CompareString(TRule(Item1).GetString, TRule(Item2).GetString);
     178      3: Result := CompareInteger(TRule(Item1).Items.GetCharLength,
     179        TRule(Item2).Items.GetCharLength);
     180      4: Result := CompareString(RuleLevelText[TRule(Item1).Level],
     181        RuleLevelText[TRule(Item2).Level]);
    177182    end;
    178183    if ListViewSort1.Order = soDown then Result := -Result;
Note: See TracChangeset for help on using the changeset viewer.