예제 #1
0
        private void actionIncrementIp(out bool executionFault)
        {
            executionFault = true;

            IpElement?topIpNullable = getTopIp();

            if (!topIpNullable.HasValue)
            {
                return;
            }

            IpElement topIp = topIpNullable.Value;

            topIp.index++;

            executionFault = false;
        }
예제 #2
0
        public void actionIpGoBack(out bool executionFault)
        {
            executionFault = true;

            IpElement?topIpNullable = getTopIp();

            if (!topIpNullable.HasValue)
            {
                return;
            }


            IpElement topIp = topIpNullable.Value;

            if (topIp.index == 0)
            {
                return;
            }

            topIp.index--;
            executionFault = false;
        }
예제 #3
0
        protected void getTopBraceWithIndex(out Brace topBrace, out uint index, out bool executionFault)
        {
            executionFault = true;
            topBrace       = null;
            index          = 0;

            IpElement?topIpNullable = getTopIp();

            if (!topIpNullable.HasValue)
            {
                return;
            }
            IpElement topIp = topIpNullable.Value;

            if (topIp.element.type != Element.EnumType.BRACE)
            {
                return;
            }

            executionFault = false;
            topBrace       = (Brace)topIp.element;
            index          = topIp.index;
        }