Binary Expression
data class BinaryExpression(var left: Expression, var right: Expression, var op: BinaryExpression.BinaryOperator, var typeName: String? = null, var line: Int) : Expression, IsParent
Used to define a binary expression
Example:
2 + a[100];
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(left: Expression, right: Expression, op: BinaryExpression.BinaryOperator, typeName: String? = null, line: Int)
Properties
Functions
Link copied to clipboard
Is replacing a certain child of the class with another object of the same type If the two parameters don't have the same type, no block will be replaced. If the type of initial doesn't match any of the current node children, no child will be replaced
Link copied to clipboard
Sets the object as a parent for its children