Skip to content

GH_ExpressionParser

Public Class

Provides a run-time evaluator for Grasshopper expressions.

Inheritance Hierarchy

System.Object
Grasshopper.Kernel.Expressions.GH_ExpressionParser

Namespace: Grasshopper.Kernel.Expressions

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public class GH_ExpressionParser

The GH_ExpressionParser type exposes the following members.

Constructors

Name

Description


Public Method

Initializes a new instance of the GH_ExpressionParser class


Public Method

Initializes a new instance of the GH_ExpressionParser class


Properties

Name

Description


Public Property

Public Property

Methods

Name

Description


Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method

Public Method
Static Member

Test a string for balanced open and close chars. You can use this function to see if brackets or parenthesis have been properly used.


Public Method

Retrieve a copy of the Queue of cached symbols. You can use the cached symbols as an uber-optimization to speed up successive calls to Evaluate() with an identical expression string


Public Method

Create a Symbols array from the expression. Use this method if you intend to evaluate the same expression multiple times. At this point, the expression has to be in correct syntax format. Use the GH_ExpressionSyntaxWriter.RewriteAll() method to make sure.


Public Method

Destroy the Symbols cache.


Public Method

Destroy the variable cache.


Public Method

Public Method

Evaluate the expression currently loaded in the Symbols cache using the currently loaded variables.


Public Method

Evaluate the expression queue without overriding any local caches. You can obtain an expression queue by calling CachedSymbols()


Public Method

Store a new expression in the Symbols cache and evaluate it using the current variables


Public Method
Static Member

Tests whether a string is a valid variable name for expressions. Valid names must contain at least one character, must start with an alphabetic character, and only contain alphanumeric chars and underscores.


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method


Protected method