GH_Lexer
Represents a lexical mask for path operations.
Inheritance Hierarchy
System.Object
Grasshopper.Kernel.Data.GH_Lexer
Namespace: Grasshopper.Kernel.Data
Assembly: Grasshopper (in Grasshopper.dll)
Syntax
public class GH_Lexer
The GH_Lexer type exposes the following members.
Constructors
Name
Description
Public Method
GH_Lexer.
Blank constructor.
Public Method
GH_Lexer(String)
Create a new mask from a textual string.
Properties
Name
Description
Public Property
IsItem
Gets a value indicating whether or not the item portion of the lexer has been set.
Public Property
IsPath
Gets a value indicating whether or not the path portion of the lexer has been set.
Public Property
Item
Gets the item string that was extracted from the mask. The default is “append”
Public Property
Mask
Gets the original string that represents the user input for this lexer.
Public Property
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.
Methods
Name
Description
Public Method
EvaluatePath
Evaluate the variables in this mask with the provided expression solver.
Public Method
Static Member
PerformLexicalReplace.T.(GH_Lexer, GH_Lexer, DataTree.T., DataTree.T.)
Lexical Find..Replace operations.
Public Method
Static Member
PerformLexicalReplace.T.(GH_Lexer, GH_Lexer, IGH_Structure, GH_Structure.T.)
Lexical Find..Replace operations.