parseExpressionWith

abstract fun parseExpressionWith(expr: String, vararg declaredVars: String): KthParsingResult

Parses an arithmetic expression from the given string and declared variables.

Any unknown alphanumeric token that is not a number, an element or a declared variable is considered illegal.

Return

the parsed KthExpression

Parameters

expr

the arithmetic expression to parse

declaredVars

the declared vars that can be used in the expression

See also


@JvmName(name = "parseExpressionWithExt")
open fun String.parseExpressionWith(vararg declaredVars: String): KthParsingResult

Parses an arithmetic expression from the receiving string and given declared variables.

Any unknown alphanumeric token that is not a number, an element or a declared variable is considered illegal.

Return

the parsed KthExpression

Parameters

declaredVars

the declared vars that can be used in the expression

See also