Class HeidenhainFnFeatureSyntax
- Namespace
- Hi.NcParsers.ParsingSyntaxs.Heidenhain
- Assembly
- HiMech.dll
Structured skip for the Heidenhain FN opcodes the simulation does not
implement (FN 14 error display, FN 16 print, FN 18
SYSREAD, table/pallet opcodes …): the whole statement is consumed and a
single HeidenhainFn–Unsupported warning names the opcode. Two
opcode families pass through untouched: FN 0-5 belong to
HeidenhainFnAssignmentSyntax (which runs earlier), and the
jump family FN 9-12 is control flow owned by a later phase.
Claiming the statement here is load-bearing, not cosmetic: an FN 18 line
like FN18: SYSREAD Q94= ID50 NR11 contains a Q94= token
that the bare Q-assignment capture (later in the Parsing bundle) would
otherwise grab, storing the garbage string ID50 into Q94. The
target parameter must instead stay vacant so dependent expressions fail
soft (VariableExpression--Unevaluated) — no fabricated values.
public class HeidenhainFnFeatureSyntax : ISituNcSyntax, INcSyntax, IMakeXmlSource
- Inheritance
-
HeidenhainFnFeatureSyntax
- Implements
- Inherited Members
- Extension Methods
Examples
#BeforeBuild.UnparsedText: FN18: SYSREAD Q94= ID50 NR11
#AfterBuild:
{}
Constructors
HeidenhainFnFeatureSyntax()
Default constructor.
public HeidenhainFnFeatureSyntax()
HeidenhainFnFeatureSyntax(XElement)
Loads from an XML element produced by MakeXmlSource(string, string, bool). No state to deserialise.
public HeidenhainFnFeatureSyntax(XElement src)
Parameters
srcXElement
Properties
Name
Syntax kind name (typically the concrete type name).
public string Name { get; }
Property Value
XName
XML element name used to register this syntax with XFactory.
public static string XName { get; }
Property Value
Methods
Build(LazyLinkedListNode<SyntaxPiece>, List<INcDependency>, NcDiagnosticProgress)
Build syntax arrangement into the
syntaxPieceNode in-place.
public void Build(LazyLinkedListNode<SyntaxPiece> syntaxPieceNode, List<INcDependency> ncDependencyList, NcDiagnosticProgress ncDiagnosticProgress)
Parameters
syntaxPieceNodeLazyLinkedListNode<SyntaxPiece>ncDependencyListList<INcDependency>ncDiagnosticProgressNcDiagnosticProgress
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.
Reg(XFactory)
Registers this type's deserializer with the given XFactory
(or Default when factory is
null). Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory