as2fm.as2fm_common.common.is_valid_variable_name
- as2fm.as2fm_common.common.is_valid_variable_name(var_name: str) bool
Check if a string can represent a variable name in JANI and SCXML.
This differs from the string.isidentifier() python function, since we allow more possibilities: * A variable name must start with a character or an underscore; * Can continue with any number of alphanumerical values plus (. - _); * Must finish with an alphanumerical value. Alternatively, a variable name can be a single character.