Table of Contents

Namespace Hi.NcParsers.ParsingSyntaxs.CommentSyntaxs

Classes

HeadCommentSyntax

In-situ syntax for a comment that owns its whole block: a line whose first word, after the optional block number, is HeadSymbol is a comment from that symbol to the end of the line, and nothing on it is vocabulary. The klartext structuring block is the case — the * - OPERATION: ROUGH - TOOL: T0 item a post-processor writes for the control's structure window — where the T0 is text, not a tool word for the root tag capture to eat. The block number ahead of the symbol stays in place for HeadIndexSyntax; the symbol anywhere else on the line (Q1 = Q2 * 3) is not a comment start. Single-line sentences only: the grouped sentences (a CYCL DEF family, a ~ chain) never open with one.

QuoteCommentSyntax

Parses parenthesized comments such as (comment text) from the remaining unparsed text and emits a Comment section with the () symbol.

TailCommentSyntax

In-situ syntax that strips a trailing comment from the NC line: text from a configured TailSymbol to end-of-line is moved into Comment on the block JSON.

Line-aware on multi-line sentences (Heidenhain grouped / ~-continued blocks): the marker-to-end-of-line strip applies per physical line, so a ; comment on one cycle-parameter line never swallows the following lines. Stripped comment texts are joined into a single Comment record. Single-line sentences behave exactly as before.