Exemple #1
0
        private integer_constant Parse_integer_constant()
        {
            /* integer-constant:
             *      digit-sequence */


            integer_constant _self = null;

            var _digit_sequence = Parse_digit_sequence();

            if (_digit_sequence != null)
            {
                _self = new integer_constant(_digit_sequence);

                return(_self);
            }

            return(_self);
        }
Exemple #2
0
 public number(sign _sign, integer_constant _integer_constant)
 {
     sign             = _sign;
     integer_constant = _integer_constant;
     expression       = sign == null ? integer_constant.expression : sign.expression + integer_constant.expression;
 }