SimplifyParentheses

Removes unnecessary parentheses from OperandSyntax.

Author

Iaroslav Postovalov

Constructors

Link copied to clipboard
fun SimplifyParentheses(precedenceFunction: (MathSyntax) -> Int)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun perform(node: MathSyntax)

Performs the specified action over MathSyntax.

Properties

Link copied to clipboard
val precedenceFunction: (MathSyntax) -> Int

Returns the precedence number for syntax node. Higher number is lower priority.

Sources

Link copied to clipboard