Documentation
¶
Index ¶
- func EvalExpression(expression string) float64
- func EvalRPN(tokens []interface{}) float64
- func ParseFloats(tokens *[]interface{})
- func ParseRPN(tokens []interface{}) []interface{}
- func ProcessUnaryOperators(tokens *[]interface{})
- func SanitizeExpression(expression string) []interface{}
- func TokenizeExpression(expression string) []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EvalExpression ¶
EvalExpression evaluates expression in string to float64
func EvalRPN ¶
func EvalRPN(tokens []interface{}) float64
EvalRPN evaluates tokens in RPN to float64
func ParseFloats ¶
func ParseFloats(tokens *[]interface{})
ParseFloats parses floats in tokens interface
func ProcessUnaryOperators ¶
func ProcessUnaryOperators(tokens *[]interface{})
ProcessUnaryOperators processes unary operators in tokens
func SanitizeExpression ¶
func SanitizeExpression(expression string) []interface{}
SanitizeExpression returns interface of sanitized tokens ready to be parsed
func TokenizeExpression ¶
func TokenizeExpression(expression string) []interface{}
TokenizeExpression returns interface of unprocessed tokens
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.