Skip to content

Commit

Permalink
Merge e221010 into 95c2358
Browse files Browse the repository at this point in the history
  • Loading branch information
gscacco committed Mar 21, 2021
2 parents 95c2358 + e221010 commit a7a054a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion promela/ast.py
Expand Up @@ -897,7 +897,7 @@ def __init__(self, s, args):
self.args = args

def __str__(self):
return 'printf()'.format(s=self.s, args=self.args)
return 'printf({s})'.format(s=self.s, args=self.args)


class Operator(object):
Expand Down
2 changes: 1 addition & 1 deletion promela/yacc.py
Expand Up @@ -251,7 +251,7 @@ def p_one_decl_mtype_vis(self, p):

def p_one_decl_mtype(self, p):
"""one_decl : MTYPE asgn LBRACE name_list RBRACE"""
p[0] = self.ast.MessageType(p[3])
p[0] = self.ast.MessageType(p[4])

def p_name_list_iter(self, p):
"""name_list : name_list COMMA NAME"""
Expand Down

0 comments on commit a7a054a

Please sign in to comment.