FUNCTION convert_to_operand

(* SCHEMA step_merged_ap_schema; *)
-- IN AP238 STEP-NC/AP242
FUNCTION convert_to_operand
      (val : maths_value ) : generic_expression;
   LOCAL
      types : SET OF STRING := stripped_typeof(val);
   END_LOCAL;
      IF 'GENERIC_EXPRESSION' IN types THEN
         RETURN (val);
      END_IF;
      IF 'MATHS_ATOM' IN types THEN
         RETURN (convert_to_literal(val));
      END_IF;
      IF 'ATOM_BASED_VALUE' IN types THEN
         RETURN (make_atom_based_literal(val));
      END_IF;
      IF 'MATHS_TUPLE' IN types THEN
         RETURN (make_maths_tuple_literal(val));
      END_IF;
      RETURN (?);
END_FUNCTION;

Referenced By

Defintion convert_to_operand is references by the following definitions:
DefinitionType
 convert_to_operands FUNCTION
 function_applicability FUNCTION
 simplify_generic_expression FUNCTION


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:20-04:00