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

Merge pull request #34 from maxime-esa/state_aggregation

State aggregation
parents b056d66d bfafe5d5
......@@ -468,13 +468,14 @@ package {process_name} is'''.format(process_name=process_name,
# - add a swich case on the corresponding substate
taste_template.append(u'-- this is a state aggregation')
for sub in aggregates[state]:
for par in sub.mapping.viewkeys():
if par in mapping[signame].viewkeys():
if [a for a in sub.mapping.viewkeys()
if a in mapping[signame].viewkeys()]:
taste_template.append(u'case '
u'{ctxt}.{sub}{sep}state is'
for par in sub.mapping.viewkeys():
taste_template.append('when others =>')
......@@ -33,7 +33,7 @@ test-python:
$(GNATBIND) -n -Llibog og
$(GNATMAKE) -c -fPIC -gnat2012 b~og.adb
$(CC) -shared -fPIC -o b~og.o og.o adaasn1rtl.o taste_dataview.o -lgnat
python -c "from ctypes import *; test=CDLL('./'); test.liboginit()"
python -c "from ctypes import *; test=CDLL('./'); test.liboginit(); test.og_for_a(); test.og_for_b(); test.og_for_a(); test.og_for_b()"
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