Parse a function definition from its syntax string and return the corresponding FunctionDefinition object.
The syntax string of the function to parse.
The parsed FunctionDefinition object if successful, null otherwise.
Create a deep clone of a FunctionDefinition object by parsing its string representation.
the original FunctionDefinition object to clone.
a new FunctionDefinition object that is a deep clone of the original.
ProtectedparseProtectedreadProtectedparse
Parser class for parsing function syntax into CustomFunctionExpression objects. You should normally not need to use this parser directly, as it is primarily used internally when creating functions from syntax. This parser handles parsing of custom functions with parameters and a body expression. The parser uses regular expressions to identify the structure of the function syntax and delegates to the ExpressionParser for parsing specific components of the function (like the body expression). The parser is designed to be extensible, allowing for additional function types and syntax patterns to be added in the future as needed.