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/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.