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

Add AST Entry for state aggregation

parent 76d2cb29
......@@ -2,7 +2,7 @@
 
# Resource object code
#
# Created: Sun Oct 11 20:30:29 2015
# Created: Mon Oct 12 21:34:01 2015
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
......@@ -716,7 +716,7 @@ class TextArea(object):
class Automaton(object):
''' Elements contained in a process or a procedure '''
''' Elements contained in a process, procedure or composite state'''
def __init__(self, parent=None):
''' AST grouping the elements that can be rendered graphically '''
self.parent = parent
......@@ -879,6 +879,21 @@ class CompositeState(Process):
l=self.line, c=self.charPositionInLine)
class StateAggregation(CompositeState):
'''
State Aggregation (Parallel states) are supported since SDL2000
These states can only contain (in the self.content field):
text areas
procedure definitions
composite states (including sub-state aggregations)
But no state machine definition
'''
def trace(self):
''' Debug output for state aggregation '''
return u'STATE AGGREGATION {exp} ({l},{c})'.format(exp=self.statename,
l=self.line, c=self.charPositionInLine)
class Block(object):
''' AST for a BLOCK entity '''
def __init__(self):
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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