Add 'cloner'. Example also uses concrete syntax for LHS and RHS. Renders all possible rewrites and morphisms with LHS and RHS.

This commit is contained in:
Joeri Exelmans 2024-10-08 12:22:37 +02:00
parent e875821e70
commit c351649d23
3 changed files with 129 additions and 93 deletions

View file

@ -1,12 +1,10 @@
# Renderer for Object Diagrams textual concrete syntax
from services import od
from services.bottom.V0 import Bottom
from concrete_syntax.common import display_value
def render_od(state, m_id, mm_id, hide_names=True):
bottom = Bottom(state)
output = ""
m_od = od.OD(mm_id, m_id, state)