Beispiel #1
0
        public static bool GetInstructionInfo(char character, out ListStringInstruction listStringType, out bool backwards)
        {
            initInstructionsDictionary();
            SingularListStringInstructionAttribute attr;

            if (_instructionListStringTypes.TryGetValue(character, out attr))
            {
                listStringType = attr.Instruction;
                backwards      = attr.Backwards;
                return(true);
            }
            else
            {
                listStringType = default(ListStringInstruction);
                backwards      = default(bool);
                return(false);
            }
        }
Beispiel #2
0
 public static bool GetInstructionInfo(char character, out ListStringInstruction listStringType, out bool backwards)
 {
     initInstructionsDictionary();
     SingularListStringInstructionAttribute attr;
     if (_instructionListStringTypes.TryGetValue(character, out attr))
     {
         listStringType = attr.Instruction;
         backwards = attr.Backwards;
         return true;
     }
     else
     {
         listStringType = default(ListStringInstruction);
         backwards = default(bool);
         return false;
     }
 }
Beispiel #3
0
 public SingularListStringInstructionAttribute(ListStringInstruction instruction, bool backwards)
 {
     Instruction = instruction;
     Backwards   = backwards;
 }
Beispiel #4
0
 public SingularListStringInstructionAttribute(ListStringInstruction instruction, bool backwards)
 {
     Instruction = instruction;
     Backwards = backwards;
 }
Beispiel #5
0
 public ListStringElementNode(ListStringInstruction instruction, bool backwards, int sourceIndex)
 {
     Instruction = instruction;
     Backwards = backwards;
     GetIndexFromStack = true;
     Index = sourceIndex;
     Count = 1;
 }