Constraints
example_constraints ¶
Demonstrates constraints in CoSy.
empty() -> str ¶
zero(s: str) -> str ¶
Append the string "0" to the input string.
:param s: The input string to which "0" will be appended. :return: The input string with "0" appended.
one(s: str) -> str ¶
Append the string "1" to the input string.
:param s: The input string to which "1" will be appended. :return: The input string with "1" appended.
fin(_r: str, s: str) -> str ¶
Return the input string. The input regular expression is not used in this function as it does not contribute to the resulting string interpretation of synthesized results. However, it can not be omitted, as the type of the combinator specifies its presence.
:param _r: The input regular expression. :param s: The input string. :return: The unmodified input string.