Ignore:
Timestamp:
Nov 30, 2017, 6:33:17 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Show char length of rule.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/generator/URules.pas

    r127 r128  
    537537function TRuleItem.GetCharLength: Integer;
    538538begin
     539  Result := 0;
     540  if not Optional then
    539541  case RuleItemType of
    540542    ritTerminal: Result := Length(Terminal);
    541     ritNonTerminal: Result := Length(NonTerminal.Name);
     543    //ritNonTerminal: Result := NonTerminal.Items.GetCharLength;
    542544    ritSubItems: Result := SubItems.GetCharLength;
    543545    ritTerminalRange: Result := Max(Length(TerminalFrom), Length(TerminalTo))
Note: See TracChangeset for help on using the changeset viewer.