C# Class UnityEngine.GraphToolsFoundation.Overdrive.MathExpressionParser

Utility class to parse a mathematical expression.
Mostra file Open project: needle-mirror/com.unity.graphtools.foundation

Public Methods

Method Description
Parse ( string expressionStr, string &error ) : IExpression

Parses a mathematical expression.

Private Methods

Method Description
ParseUntil ( UnityEngine.GraphToolsFoundation.Overdrive.MathExpressionReader r, Stack opStack, Stack output, Token readUntilToken, int startOpStackSize ) : IExpression
ReadOperator ( string input, bool unary ) : UnityEngine.GraphToolsFoundation.Overdrive.Operator
TryPeek ( Stack stack, &t ) : bool

Method Details

Parse() public static method

Parses a mathematical expression.
public static Parse ( string expressionStr, string &error ) : IExpression
expressionStr string The expression in string to be parsed.
error string The error message if an exception occured.
return IExpression