as2fm.as2fm_common.common

Common functionalities used throughout the toolchain.

Functions

get_default_expression_for_type(field_type)

Generate a default expression for a field 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)

Takes a python object and returns it as a (SCXML compatible) string.

value_to_type(value)

Return the type of a python object (to be a jani value).