Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
e97ba619
Commit
e97ba619
authored
Oct 12, 2015
by
Maxime Perrotin
Browse files
Add AST Entry for state aggregation
parent
76d2cb29
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
opengeode/icons.py
View file @
e97ba619
...
...
@@ -2,7 +2,7 @@
# Resource object code
#
# Created:
Su
n Oct 1
1
2
0
:3
0:29
2015
# Created:
Mo
n Oct 1
2
2
1
:3
4:01
2015
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
opengeode/ogAST.py
View file @
e97ba619
...
...
@@ -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
):
...
...
opengeode/sdl92Lexer.py
View file @
e97ba619
This diff is collapsed.
Click to expand it.
opengeode/sdl92Parser.py
View file @
e97ba619
This diff is collapsed.
Click to expand it.
sdl92.g
View file @
e97ba619
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment