ESCGrammarExprs.Grouping
Extends: ESCGrammarExpr
Description
Represents an expression surrounded by parentheses, imparting a higher precedence. For example, (1 + 1) * 2.
Members
Methods
init
func init(expression: ESCGrammarExpr) -> void
Initialization method. Must be called after instantiation.
Parameters
Name |
Type |
Description |
Required? |
|---|---|---|---|
expression |
|
the expression contained inside the parentheses |
yes |
Returns
Returns nothing.
get_expression
func get_expression() -> ESCGrammarExpr
The grouped expression.
Parameters
None.
Returns
Returns the grouped expression. (ESCGrammarExpr)
accept
func accept(visitor: Variant) -> Variant
Method to invoke visitor-specific code.
Parameters
Name |
Type |
Description |
Required? |
|---|---|---|---|
visitor |
|
Visitor instance invoked to process this expression. |
yes |
Returns
Returns the result of visiting this grouping expression. (Variant)