Commit a9b22c1e authored by Vladimír Štill's avatar Vladimír Štill
Browse files

lib: Add missing __repr__ to common

parent 999afa32
......@@ -47,6 +47,9 @@ class Character:
def __hash__(self):
return hash(
def __repr__(self) -> str:
return f"Character({})"
class State:
def __init__(self, name: str):
......@@ -83,6 +86,9 @@ class Eps:
def __len__(self):
return 0
def __repr__(self) -> str:
return "Eps()"
class Emptyset:
def __init__(self):
......@@ -93,3 +99,6 @@ class Emptyset:
def __hash__(self):
return hash("∅")
def __repr__(self) -> str:
return "Emptyset()"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment