Пример #1
0
        public signed_function Parse_signed_function()
        {
            signed_function _self = null;

            var _backtrack = _index;

            List <minus> __minus = new List <minus>();
            var          _minus  = Parse_minus();

            while (_minus != null)
            {
                __minus.Add(_minus); _minus = Parse_minus();;
            }
            if (__minus.Count > 0)
            {
                _minus = new minus(__minus);
            }

            //minus _minus = null;
            //_minus = Parse_minus();

            var _function = Parse_function();

            if (_function == null)
            {
                _index = _backtrack; return(null);
            }

            _self = new signed_function(_minus, _function);
            return(_self);
        }
Пример #2
0
 public factor(signed_function _signed_function, function_parameter _function_parameter)
 {
     signed_function    = _signed_function;
     function_parameter = _function_parameter;
     expression         = signed_function?.expression + function_parameter.expression;
 }