Class LocalVariableLookup
- Namespace
- Hi.NcParsers.EvaluationSyntaxs.Evaluation
- Assembly
- HiMech.dll
Reads Fanuc-style local macro variables (#1-#33) from
Vars.Local on the current SyntaxPiece JSON,
walking Previous until the entry
is found. Self-gates the id range so the evaluator's
RuntimeVariableLookups chain can
fall through to the next lookup for out-of-range keys.
Stateless and dependency-free — instances are interchangeable.
public class LocalVariableLookup : IRuntimeVariableLookup
- Inheritance
-
LocalVariableLookup
- Implements
- Inherited Members
- Extension Methods
Fields
LocalMax
Inclusive upper bound of the macro-local range (#33).
public const int LocalMax = 33
Field Value
LocalMin
Inclusive lower bound of the macro-local range (#1).
public const int LocalMin = 1
Field Value
Methods
Get(string, LazyLinkedListNode<SyntaxPiece>, IReadOnlyList<INcDependency>)
Returns the value of the variable identified by key
in the context of node and
dependencies, or null if the key is outside
this lookup's range or the value is vacant.
public double? Get(string key, LazyLinkedListNode<SyntaxPiece> node, IReadOnlyList<INcDependency> dependencies)
Parameters
keystringnodeLazyLinkedListNode<SyntaxPiece>dependenciesIReadOnlyList<INcDependency>