示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="tokens"></param>
        public FunctionResNode(string[] tokens) : base(tokens)
        {
            var lhsParser = new Parse.Var(tokens);
            var rhsParser = new Parse.FunctionCall(tokens.Skip(3));

            lhsParser.ParseLhs();
            Lhs          = lhsParser.Lhs;
            FunctionName = rhsParser.FunctionName;
            FunctionArgs = rhsParser.FunctionArgs;
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="tokens"></param>
        public VarNode(string[] tokens) : base(tokens)
        {
            var parser = new Parse.Var(tokens);

            parser.ParseLhs();
            parser.ParseRhs();

            Lhs        = parser.Lhs;
            Rhs        = parser.Rhs;
            RhsType    = parser.RhsType;
            IsConstant = parser.IsConstant;
        }