GH_Lexer

References
public class GH_Lexer
Represents a lexical mask for path operations.

Constructors

GH_Lexer

#
Blank constructor.
public GH_Lexer()

GH_Lexer

#
Create a new mask from a textual string.
public GH_Lexer(
mask
Mask string.
)

Properties

IsItem

#
Gets a value indicating whether or not the item portion of the lexer has been set.
public bool IsItem { get; }

IsPath

#
Gets a value indicating whether or not the path portion of the lexer has been set.
public bool IsPath { get; }

Item

#
Gets the item string that was extracted from the mask. The default is "append"
public string Item { get; }

Mask

#
Gets the original string that represents the user input for this lexer.
public string Mask { get; }

Path

#
Gets the list of path strings that was extracted from the mask. If the mask hasn't been parsed yet, it will be parsed now. If the returned list is still nothing, parsing failed.
public List<string> Path { get; }

Methods

EvaluatePath

#
Evaluate the variables in this mask with the provided expression solver.
public bool EvaluatePath(
evaluator,
Evaluator to use. Must have all variables properly set up.
ref GH_Path
path,
Path result.
ref int
index
Index result. If the lexer contains no item representation then the index remains unmolested.
)
True on success, false on failure.

PerformLexicalReplace<T>

#
Lexical Find..Replace operations.
public static void PerformLexicalReplace<T>(
source,
Search mask.
target,
Replace pattern.
tree_in,
Source data tree.
tree_out
Target data tree.
)

PerformLexicalReplace<T>

#
Lexical Find..Replace operations.
public static void PerformLexicalReplace<T>(
source,
Search mask.
target,
Replace pattern.
structure_in,
Source data tree.
structure_out
Target data tree.
)