public class ST2Execode
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,org.vishia.execode.Execode.EInstruction> |
mapOperator |
private static java.util.Map<java.lang.String,org.vishia.execode.Execode.EInstruction> |
mapUnaryOp |
Constructor and Description |
---|
ST2Execode() |
Modifier and Type | Method and Description |
---|---|
static void |
init() |
private static void |
prepAssignment(Statement_FBcl.Write stmnt,
IEC61499data.Assignment_statement sraw,
Write_Module_FBwr mdl) |
private static long |
prepExprOperand(org.vishia.execode.Execode exec,
IEC61499data.Expression xraw,
Write_Module_FBwr mdl,
int recursive)
Converts the parsed ST expression into ReversPolishNotation.
|
static void |
prepSimpleFB(IEC61499data.SimpleFB fbraw,
Write_Module_FBwr mdl)
Prepare a FBlock which contains textual Structure Text
Yet only: Set expression to Module_FBcl#doutPort . |
private static java.util.Map<java.lang.String,org.vishia.execode.Execode.EInstruction> mapOperator
private static java.util.Map<java.lang.String,org.vishia.execode.Execode.EInstruction> mapUnaryOp
public static void init()
public static void prepSimpleFB(IEC61499data.SimpleFB fbraw, Write_Module_FBwr mdl)
Module_FBcl#doutPort
. DoutMdl_FBcl.assignmentSimpleFB
.fbraw
- mdl
- private static void prepAssignment(Statement_FBcl.Write stmnt, IEC61499data.Assignment_statement sraw, Write_Module_FBwr mdl)
private static long prepExprOperand(org.vishia.execode.Execode exec, IEC61499data.Expression xraw, Write_Module_FBwr mdl, int recursive)
IEC61499data.Expression
IEC61499data.Expression#constant
IEC61499data.Expression#variable
maybe input pin, maybe local
IEC61499data.Expression#enumerated_value
IEC61499data.Expression#expression
IEC61499data.Expression#operand
. It contains the operator and the right side operand.
IEC61499data.Expression#operator
is the operator regarded to the left Operand1.
It has its meaning inside elements of IEC61499data.Expression#operand
.
IEC61499data.Expression#operator
of the first member is null (!)
because Operand1 has not an operator left side.
-IEC61499data.Expression#unaryOp
is regarded to the left side Operand1.
IEC61499data.Expression#expression
inside the IEC61499data.Expression#expression
, it is a sub expression.
That is valid not only for expressions in parenthesis, also for sub expressions with higher ranking without parenthesis.
IEC61499data.Expression#operand
list.
exec
- xraw
- mdl
- recursive
-