Table of Contents

Class InlineDelimiterSegmenter

Namespace
Hi.NcParsers.Segmenters
Assembly
HiMech.dll

Segments NC lines by an inline delimiter (e.g. ';'). A line containing the delimiter produces multiple Sentences, each with a precise FileLineCharIndexSegment. Lines without the delimiter produce a single Sentence.

public class InlineDelimiterSegmenter : ISegmenter, IToXElement
Inheritance
InlineDelimiterSegmenter
Implements
Inherited Members
Extension Methods

Constructors

InlineDelimiterSegmenter()

public InlineDelimiterSegmenter()

InlineDelimiterSegmenter(char)

public InlineDelimiterSegmenter(char delimiter)

Parameters

delimiter char

Fields

DefaultDelimiter

Default delimiter: ';'.

public static readonly char DefaultDelimiter

Field Value

char

Properties

Delimiter

The inline delimiter character.

public char Delimiter { get; }

Property Value

char

Name

Display name of this segmenter.

public string Name { get; }

Property Value

string

XName

public static string XName { get; }

Property Value

string

Methods

GetSentences(LazyLinkedList<IndexedFileLine>, NcDiagnosticProgress)

Segments the indexed file lines into Sentences.

public IEnumerable<Sentence> GetSentences(LazyLinkedList<IndexedFileLine> indexedFileLines, NcDiagnosticProgress ncDiagnosticProgress)

Parameters

indexedFileLines LazyLinkedList<IndexedFileLine>

The lazy linked list of indexed file lines.

ncDiagnosticProgress NcDiagnosticProgress

Diagnostic progress reporter.

Returns

IEnumerable<Sentence>

A sequence of Sentences.

ToXElement()

Get the XElement to represent the object.

public XElement ToXElement()

Returns

XElement

XElement to represent the object.