Ignore:
Timestamp:
Dec 26, 2017, 6:59:40 PM (7 years ago)
Author:
chronos
Message:
  • Added: Support for whitespaces in And rule.
  • Added: Terminals can be specified as escaped strings with slash.
File:
1 edited

Legend:

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

    r129 r136  
    1717    ButtonOk: TButton;
    1818    CheckBoxAnyExcept: TCheckBox;
     19    CheckBoxEscapedString: TCheckBox;
    1920    CheckBoxOptional: TCheckBox;
    2021    CheckBoxRepetitive: TCheckBox;
     
    123124  ListBox1.Visible := RuleItem.RuleItemType = ritNonTerminal;
    124125  LabelNonTerminal.Visible := RuleItem.RuleItemType = ritNonTerminal;
     126  CheckBoxOptional.Enabled := RuleItem.ParentRule.Items.RuleType = rtAnd;
     127  CheckBoxRepetitive.Enabled := RuleItem.ParentRule.Items.RuleType = rtAnd;
     128  CheckBoxEscapedString.Enabled := (RuleItem.RuleItemType = ritTerminal) or
     129    (RuleItem.RuleItemType = ritTerminalRange);
    125130end;
    126131
     
    138143  CheckBoxAnyExcept.Checked := RuleItem.AnyExcept;
    139144  TFormRuleItems(FormRuleItems).LoadData(RuleItem.SubItems);
     145  CheckBoxEscapedString.Checked := RuleItem.EscapedStrings;
    140146  UpdateInterface;
    141147end;
     
    155161  RuleItem.Repetitive := CheckBoxRepetitive.Checked;
    156162  RuleItem.AnyExcept := CheckBoxAnyExcept.Checked;
     163  RuleItem.EscapedStrings := CheckBoxEscapedString.Checked;
    157164end;
    158165
Note: See TracChangeset for help on using the changeset viewer.