Class AssignmentExprInstrGenerator
java.lang.Object
org.ek9lang.compiler.phase7.generator.AbstractGenerator
org.ek9lang.compiler.phase7.generator.AssignmentExprInstrGenerator
final class AssignmentExprInstrGenerator
extends AbstractGenerator
implements Function<String, List<IRInstr>>
Creates IR instructions for assignment expressions.
Generates new BasicBlock IR (IRInstructions).
Note that this is just really a 'pointer' assignment to some existing allocated object/memory. It is not a deep copy in any way.
THis deals with the following ANTLR grammar.
assignmentExpression
: expression
| guardExpression
| dynamicClassDeclaration
| switchStatementExpression
| tryStatementExpression
| whileStatementExpression
| forStatementExpression
| streamExpression
;
-
Field Summary
Fields inherited from class AbstractGenerator
debugInfoCreator, instructionBuilder, stackContext -
Constructor Summary
ConstructorsConstructorDescriptionAssignmentExprInstrGenerator(IRGenerationContext stackContext, ExprInstrGenerator exprInstrGenerator, EK9Parser.AssignmentExpressionContext ctx) Constructor accepting injected ExprInstrGenerator. -
Method Summary
Methods inherited from class AbstractGenerator
createTempVariable, createTempVariableFromContext, extractReturnType, getRecordedSymbolOrException
-
Constructor Details
-
AssignmentExprInstrGenerator
AssignmentExprInstrGenerator(IRGenerationContext stackContext, ExprInstrGenerator exprInstrGenerator, EK9Parser.AssignmentExpressionContext ctx) Constructor accepting injected ExprInstrGenerator. Eliminates internal generator creation for better object reuse.
-
-
Method Details
-
apply
-