Beispiel #1
0
 public override void ToInstructions(List <byte> instructions)
 {
     _type?.ToInstructions(instructions);
     _id?.ToInstructions(instructions);
     _length?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.DefArray);
 }
Beispiel #2
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);
 }
Beispiel #4
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);
 }
        public override void ToInstructions(List <byte> instructions)
        {
            foreach (var value in _values)
            {
                value.ToInstructions(instructions);
            }

            _id?.ToInstructions(instructions);
            _index?.ToInstructions(instructions);
            instructions.Add((byte)InstructionsEnum.SetArrayValueAtIndex);
        }
Beispiel #6
0
 public override void ToInstructions(List <byte> instructions)
 {
     _id?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.CustomFunction);
 }
Beispiel #7
0
 public override void ToInstructions(List <byte> instructions)
 {
     _left?.ToInstructions(instructions);
     _right?.ToInstructions(instructions);
     instructions.Add((byte)_mathInstruction);
 }
Beispiel #8
0
 public override void ToInstructions(List <byte> instructions)
 {
     _id?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.GetArray);
 }
Beispiel #9
0
 public override void ToInstructions(List <byte> instructions)
 {
     _id?.ToInstructions(instructions);
     _numberOfFields?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.DefType);
 }
 public override void ToInstructions(List <byte> instructions)
 {
     _val?.ToInstructions(instructions);
     _id?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.SetVar);
 }
 public override void ToInstructions(List <byte> instructions)
 {
     _isArray?.ToInstructions(instructions);
     _type?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.ReturnSignature);
 }