as2fm.as2fm_common.common

Common functionalities used throughout the toolchain.

Functions

check_value_type_compatible(value, field_type)

Check if the value is compatible with the field type.

convert_string_to_int_array(value)

Convert a string to a list of integers.

get_default_expression_for_type(field_type)

Generate a default expression for a field type.

is_array_type(field_type)

Check if the field type is an array type.

is_comment(element)

Check if an element is a comment.

is_valid_variable_name(var_name)

Check if a string can represent a variable name in JANI and SCXML.

remove_namespace(tag)

If a tag has a namespace, remove it.

string_as_bool(value_str)

Special case for boolean conversion for configuration parameters.

value_to_string_expr(value)

Convert a value to a string.

value_to_type(value)

Convert a value to a type.