Package org.eolang.opeo.ast
Class VariableAssignment
java.lang.Object
org.eolang.opeo.ast.VariableAssignment
Variable assignment.
x = 2;
- Since:
- 0.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eolang.opeo.ast.AstNode
AstNode.Empty
-
Constructor Summary
ConstructorsConstructorDescriptionVariableAssignment
(List<org.eolang.jeo.representation.xmir.XmlNode> children, Parser parser) Constructor.VariableAssignment
(org.eolang.jeo.representation.xmir.XmlNode root, Parser parser) Constructor.VariableAssignment
(LocalVariable left, AstNode right) Constructor. -
Method Summary
-
Constructor Details
-
VariableAssignment
Constructor.- Parameters:
root
- Xmir representation of a variable assignment.parser
- Parser that will be used to parse the child nodes of the variable assignment.
-
VariableAssignment
Constructor.- Parameters:
children
- Child nodes that represent the variable and the expression.parser
- Parser that will be used to parse the child nodes of the variable assignment.
-
VariableAssignment
Constructor.- Parameters:
left
- Left variable.right
- Right expression.
-
-
Method Details