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
dbc24a85
Commit
dbc24a85
authored
Oct 24, 2014
by
Maxime Perrotin
Browse files
Render text areas at system level
parent
39525198
Changes
2
Hide whitespace changes
Inline
Side-by-side
Renderer.py
View file @
dbc24a85
...
...
@@ -64,10 +64,12 @@ def render(ast, scene, parent, states, terminators=None):
@
render
.
register
(
ogAST
.
Block
)
def
_block
(
ast
,
scene
):
''' Render a block, containing a set of process symbols '''
# TODO = Add text areas with signal lists, external procedures defs...
top_level
=
[]
for
each
in
ast
.
processes
:
top_level
.
append
(
render
(
each
,
scene
))
for
each
in
ast
.
parent
.
text_areas
:
# Sytem level may contain text areas with signal definitions, etc.
top_level
.
append
(
render
(
each
,
scene
))
return
top_level
...
...
ogParser.py
View file @
dbc24a85
...
...
@@ -2307,7 +2307,6 @@ def text_area_content(root, ta_ast, context):
elif
child
.
type
==
lexer
.
USE
:
# USE clauses can contain a CIF comment with the ASN.1 filename
for
each
in
child
.
getChildren
():
use_cmt
=
''
if
each
.
type
==
lexer
.
ASN1
:
errors
.
append
(
'There shall be no CIF in text areas'
)
elif
each
.
type
==
lexer
.
COMMENT
:
...
...
@@ -2317,7 +2316,6 @@ def text_area_content(root, ta_ast, context):
else
:
ta_ast
.
use_clauses
.
append
(
each
.
text
)
else
:
print
'HIM'
warnings
.
append
(
'Unsupported construct in text area content, type: '
+
str
(
child
.
type
))
...
...
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