public override IRuleNode VisitStringPart(string str)
        {
            var get = str.GetParameterFromString();

            return(new SetBitOfResourceNode(LexemManager.GetNodeByString(get[0]),
                                            LexemManager.GetNodeByString(get[1]), get[2]));
        }
Example #2
0
        public override IRuleNode VisitStringPart(string str)
        {
            var get = str.GetParameterFromString();

            return(new CompareNode(LexemManager.GetNodeByString(get[0]), LexemManager.GetNodeByString(get[1]),
                                   get[2].GetOperatorType()));
        }
Example #3
0
        public override IRuleNode VisitStringPart(string str)
        {
            var get = str.GetParameterFromString();

            if (get.Count == 2)
            {
                return(new IfNode(LexemManager.GetNodeByString(get[0]), LexemManager.GetNodeByString(get[1])));
            }

            return(new IfNode(LexemManager.GetNodeByString(get[0]), LexemManager.GetNodeByString(get[1]),
                              LexemManager.GetNodeByString(get[2])));
        }
Example #4
0
        public override IRuleNode VisitStringPart(string str)
        {
            var get = str.GetParameterFromString();

            return(new GetDeviceValueNode(LexemManager.GetNodeByString(get[0])));
        }
Example #5
0
        public override IRuleNode VisitStringPart(string str)
        {
            var get = str.GetParameterFromString();

            return(new MultiplyNode(LexemManager.GetNodeByString(get[0]), LexemManager.GetNodeByString(get[1])));
        }
        public override IRuleNode VisitStringPart(string str)
        {
            var get = str.GetParameterFromString();

            return(new ConvertUnsignedToInt16Node(LexemManager.GetNodeByString(get[0])));
        }
Example #7
0
        public override IRuleNode VisitStringPart(string str)
        {
            var get = str.GetParameterFromString();

            return(new AddNode(get.Select(s => LexemManager.GetNodeByString(s)).ToList()));
        }