Exemplo n.º 1
0
 public factor_sequence(infix_operator_type2 _infix_operator_type2, factor _factor, factor_sequence _factor_sequence)
 {
     infix_operator_type2 = _infix_operator_type2;
     factor = _factor;
     self_factor_sequence = _factor_sequence;
     expression           = self_factor_sequence?.expression + infix_operator_type2.expression + factor.expression;
 }
Exemplo n.º 2
0
        private factor_sequence Parse_factor_sequence(factor_sequence _self = null)
        {
            /*
             *
             * factor-sequence:
             *      infix-operator-type2 factor
             | infix-operator-type2 factor factor-sequence
             |
             */


            var _infix_operator_type2 = Parse_infixOperator_type2();

            if (_infix_operator_type2 == null)
            {
                return(_self);
            }

            var _factor = Parse_factor();

            if (_factor != null)
            {
                var _factor_sequence = new factor_sequence(_infix_operator_type2, _factor, _self);
                _self = Parse_factor_sequence(_factor_sequence);
            }


            return(_self);
        }
Exemplo n.º 3
0
Arquivo: term.cs Projeto: wdmckee/X.IO
 public term(factor _factor, factor_sequence _factor_sequence)
 {
     factor          = _factor;
     factor_sequence = _factor_sequence;
     expression      = factor.expression + factor_sequence.expression;
 }