Table of Contents

Class IntegerTagSetupSyntax

Namespace
Hi.NcParsers.Syntaxs.Derived
Assembly
HiMech.dll

TagSetupSyntax that parses numeric literal values to int. Variable text (e.g. Q2, #1, [#1+#2]) remains as string.

public class IntegerTagSetupSyntax : TagSetupSyntax, INcSyntax
Inheritance
IntegerTagSetupSyntax
Implements
Inherited Members
Extension Methods

Constructors

IntegerTagSetupSyntax(IEnumerable<string>, IEnumerable<string>, string)

public IntegerTagSetupSyntax(IEnumerable<string> categoryPath, IEnumerable<string> tags, string variableTag)

Parameters

categoryPath IEnumerable<string>
tags IEnumerable<string>
variableTag string

Methods

ToInteger(string)

Parses a numeric literal to int; returns the original string for variable text.

public static JsonNode ToInteger(string setup)

Parameters

setup string

Returns

JsonNode

ToSetupJsonNode(string)

Converts a tag setup string value to a JsonNode. Override in derived classes for typed parsing (int, double). Variable text (e.g. Q2, #1, [#1+#2]) is kept as string.

protected override JsonNode ToSetupJsonNode(string setup)

Parameters

setup string

Returns

JsonNode