Ignore:
Timestamp:
Nov 29, 2017, 3:45:03 PM (7 years ago)
Author:
chronos
Message:
  • Added: New rule item option to match any character except given one.
  • Added: Show file name in main window title.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/URules.pas

    r122 r123  
    2727    Optional: Boolean;
    2828    Repetitive: Boolean;
     29    AnyExcept: Boolean;
    2930    RuleItemType: TRuleItemType;
    3031    Terminal: string;
     
    335336  WriteBoolean(Node, 'Optional', Optional);
    336337  WriteBoolean(Node, 'Repetitive', Repetitive);
     338  WriteBoolean(Node, 'AnyExcept', AnyExcept);
    337339
    338340  case RuleItemType of
     
    361363  if Optional then Result := '+' + Result;
    362364  if Repetitive then Result := '*' + Result;
     365  if AnyExcept then Result := '!' + Result;
    363366end;
    364367
     
    406409  Optional := ReadBoolean(Node, 'Optional', False);
    407410  Repetitive := ReadBoolean(Node, 'Repetitive', False);
     411  AnyExcept := ReadBoolean(Node, 'AnyExcept', False);
    408412  case RuleItemType of
    409413    ritTerminal: Terminal := ReadString(Node, 'Terminal', '');
Note: See TracChangeset for help on using the changeset viewer.