Skip to content
Snippets Groups Projects
Commit d2282a58 authored by Jaime Arias's avatar Jaime Arias
Browse files

fix: do nothing

parent 176ae33b
No related branches found
No related tags found
No related merge requests found
...@@ -1031,7 +1031,7 @@ class InterpreterParser(Parser): ...@@ -1031,7 +1031,7 @@ class InterpreterParser(Parser):
updates = " ; ".join( updates = " ; ".join(
[re.sub(r"(\S+)\s*:=\s*(\S+)", r"\1 := \2", u) for u in t.update] [re.sub(r"(\S+)\s*:=\s*(\S+)", r"\1 := \2", u) for u in t.update]
) )
updates_str = "" if (updates == "") else f" do {{ {updates} }}" updates_str = "nothing" if updates == "" else updates
# sync # sync
actions = t.sync actions = t.sync
...@@ -1040,7 +1040,7 @@ class InterpreterParser(Parser): ...@@ -1040,7 +1040,7 @@ class InterpreterParser(Parser):
# guard # guard
guard = self._normalize_constraints(t.guard) guard = self._normalize_constraints(t.guard)
return f"when {guard} {sync_str}{updates_str} goto {t.target}" return f"when {guard} {sync_str} do {{ {updates_str} }} goto {t.target}"
def _get_automaton(self, automaton: Automaton, sync_actions: list[str]) -> str: def _get_automaton(self, automaton: Automaton, sync_actions: list[str]) -> str:
"""Get the encoding of an automaton in the Maude interpreter """Get the encoding of an automaton in the Maude interpreter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment