Class DefineVariableOperation
java.lang.Object
org.kigalisim.lang.operation.DefineVariableOperation
- All Implemented Interfaces:
Operation
-
Constructor Summary
ConstructorsConstructorDescriptionDefineVariableOperation(String variableName, Operation valueOperation) Create a new DefineVariableOperation. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(PushDownMachine machine) Executes the variable definition operation.Get a record describing this operation's semantics.
-
Constructor Details
-
DefineVariableOperation
-
-
Method Details
-
execute
Executes the variable definition operation.This method executes the value operation to obtain the value, defines the variable if it doesn't exist, and then sets the variable value in the engine.
-
getStaticSemantics
Get a record describing this operation's semantics.Get a record describing this operation's semantics that are inferrable from its static expression in code. In other words, properties and effects which do not require inspection at time of executing the operation.
- Specified by:
getStaticSemanticsin interfaceOperation- Returns:
- Inference of common static properties found for this operation.
-