private floating_point_constant Parse_floating_point_constant() { /* floating-point-constant: * fractional-constant exponent? | digit-sequence exponent*/ floating_point_constant _self = null; var _fractional_constant = Parse_fractional_constant(); if (_fractional_constant != null) { var _exp = Parse_exponent(); _self = new floating_point_constant(_fractional_constant, _exp); return(_self); } var _digit_sequence = Parse_digit_sequence(); if (_digit_sequence != null) { var _exp = Parse_exponent(); _self = new floating_point_constant(_digit_sequence, _exp); return(_self); } return(_self); }
public number(sign _sign, floating_point_constant _floating_point_constant) { sign = _sign; floating_point_constant = _floating_point_constant; expression = sign == null ? floating_point_constant.expression : sign.expression + floating_point_constant.expression; }