コード例 #1
0
 public override void ToInstructions(List <byte> instructions)
 {
     _type?.ToInstructions(instructions);
     _id?.ToInstructions(instructions);
     _length?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.DefArray);
 }
コード例 #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);
 }
コード例 #3
0
 public override void ToInstructions(List <byte> instructions)
 {
     _condition?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.If);
     _body?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.EndIf);
 }
コード例 #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);
        }
コード例 #6
0
 public override void ToInstructions(List <byte> instructions)
 {
     _id?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.CustomFunction);
 }
コード例 #7
0
 public override void ToInstructions(List <byte> instructions)
 {
     _left?.ToInstructions(instructions);
     _right?.ToInstructions(instructions);
     instructions.Add((byte)_mathInstruction);
 }
コード例 #8
0
 public override void ToInstructions(List <byte> instructions)
 {
     _id?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.GetArray);
 }
コード例 #9
0
 public override void ToInstructions(List <byte> instructions)
 {
     _id?.ToInstructions(instructions);
     _numberOfFields?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.DefType);
 }
コード例 #10
0
 public override void ToInstructions(List <byte> instructions)
 {
     _val?.ToInstructions(instructions);
     _id?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.SetVar);
 }
コード例 #11
0
 public override void ToInstructions(List <byte> instructions)
 {
     _isArray?.ToInstructions(instructions);
     _type?.ToInstructions(instructions);
     instructions.Add((byte)InstructionsEnum.ReturnSignature);
 }