Commit 69686408 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix SEQOF Literal renaming in nested states

parent ba4649d7
......@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.5.37 (05/2017)
- Fix Ada backend bug with sequence of literals in nested states
1.5.36 (05/2017)
- Fix Unicode issues in Ada backend
......
......@@ -367,11 +367,11 @@ def rename_everything(ast, from_name, to_name):
in the scope of a composite state, so that they do not overwrite
a variable with the same name declared at a higher scope.
'''
# LOG.debug ('rename_everything - ' + str(ast) + " - ")
# try:
# LOG.debug(ast.inputString)
# except:
# pass
LOG.debug ('rename_everything - ' + str(ast) + " - ")
try:
LOG.debug(ast.inputString)
except:
pass
_, _, _ = ast, from_name, to_name
......@@ -507,6 +507,14 @@ def _rename_expr(ast, from_name, to_name):
rename_everything(ast.right, from_name, to_name)
@rename_everything.register(ogAST.PrimSequenceOf)
def _rename_prim_seq_of(ast, from_name, to_name):
''' List of primary '''
for each in ast.value:
rename_everything(each, from_name, to_name)
@rename_everything.register(ogAST.PrimIndex)
def _rename_index(ast, from_name, to_name):
''' Index of an array '''
......
......@@ -139,7 +139,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.36'
__version__ = '1.5.37'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......
Markdown is supported
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