Exemplo n.º 1
0
 public term_sequence(infix_operator_type1 _infix_operator_type1, term _term, term_sequence _term_sequence)
 {
     infix_operator_type1 = _infix_operator_type1;
     term = _term;
     self_term_sequence = _term_sequence;
     expression         = self_term_sequence?.expression + _infix_operator_type1.expression + term.expression;
 }
Exemplo n.º 2
0
        private term_sequence Parse_term_sequence(term_sequence _self = null)
        {
            var _infix_operator_type1 = Parse_infixOperator_type1();

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

            var _term = Parse_term();


            if (_term != null)
            {
                var _term_sequence = new term_sequence(_infix_operator_type1, _term, _self);
                _self = Parse_term_sequence(_term_sequence);
            }

            return(_self);
        }
Exemplo n.º 3
0
 public arith_expression(term _term, term_sequence _term_sequence)
 {
     term          = _term;
     term_sequence = _term_sequence;
     expression    = _term.expression + term_sequence.expression;
 }