public object ApplyFilters(SglrEngine engine, IParseNode root, string sort, int startOffset, int inputLength) { IParseNode node = root; InitializeFromParser(engine); node = ApplyTopSortFilter(sort, node); if (filterAny) { node = ApplyCycleDetectFilter(node); node = FilterTree(node); } if (node == null) return null; return YieldTreeTop(node, startOffset); }
/// <inheritdoc /> internal override void Execute(SglrEngine parser, Frame frame) { parser.TryAccept(frame); }
/// <inheritdoc /> internal override void Execute(SglrEngine parser, Frame frame) { parser.EnqueueForShifter(frame, this.NextState, parser.CurrentToken); }
/// <inheritdoc /> internal override void Execute(SglrEngine parser, Frame frame) { if (!parser.IsFollowRestricted(this.FollowRestriction)) parser.DoReductions(frame, this.Label); }
private void InitializeFromParser(SglrEngine engine) { throw new NotImplementedException(); }
public object ApplyFilters(SglrEngine engine, IParseNode root, string sort, int inputLength) { return ApplyFilters(engine, root, sort, 0, inputLength); }