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 Parse_term()
        {
            term _self = null;

            var _factor = Parse_factor();


            if (_factor != null)
            {
                _self = new term(_factor);
            }

            var _factor_sequence = Parse_factor_sequence();

            if (_factor != null && _factor_sequence != null)
            {
                _self = new term(_factor, _factor_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;
 }
Exemplo n.º 4
0
 public arith_expression(term _term)
 {
     term       = _term;
     expression = term.expression;
 }
Exemplo n.º 5
0
 public term_sequence(infix_operator_type1 _infix_operator_type1, term _term)
 {
     infix_operator_type1 = _infix_operator_type1;
     term       = _term;
     expression = _infix_operator_type1.expression + term.expression;
 }