Exemple #1
0
 public override void ToInstructions(List <byte> instructions)
 {
     _numberOfLoops?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.For);
     _body?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.EndFor);
 }
 public override void ToInstructions(List <byte> instructions)
 {
     _condition?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.If);
     _body?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.EndIf);
 }
Exemple #3
0
 public override void ToInstructions(List <byte> instructions)
 {
     _id?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.DefFunction);
     _returnSignature?.ToInstructions(instructions);
     _body?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.EndDefFunction);
 }