Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pta2maude
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
real-time maude
pta2maude
Commits
d2282a58
Commit
d2282a58
authored
1 year ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
fix: do nothing
parent
176ae33b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pta2maude/src/Parser.py
+2
-2
2 additions, 2 deletions
pta2maude/src/Parser.py
with
2 additions
and
2 deletions
pta2maude/src/Parser.py
+
2
−
2
View file @
d2282a58
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment