Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
df798f84
Commit
df798f84
authored
Mar 02, 2019
by
Maxime Perrotin
Browse files
Fix minor issues
parent
30a63a0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/ogParser.py
View file @
df798f84
...
...
@@ -2893,9 +2893,9 @@ def newtype(root, ta_ast, context):
elif
(
root
.
getChild
(
1
).
type
==
lexer
.
ARRAY
):
try
:
newType
=
get_array_type
(
newtypename
,
root
.
getChild
(
1
))
USER_DEFINED_TYPES
.
update
({
str
(
newtypename
):
newType
})
except
TypeError
as
err
:
errors
.
append
(
str
(
err
))
USER_DEFINED_TYPES
.
update
({
str
(
newtypename
):
newType
})
LOG
.
debug
(
"Found new ARRAY type "
+
newtypename
)
elif
(
root
.
getChild
(
1
).
type
==
lexer
.
STRUCT
):
newType
.
kind
=
"SequenceType"
...
...
opengeode/opengeode.py
View file @
df798f84
...
...
@@ -1958,6 +1958,12 @@ class SDL_View(QtGui.QGraphicsView, object):
first_pr
=
pr_names
.
pop
()
other_pr
=
", "
.
join
(
pr_names
)
print
"*** LIST OF ASN1 FILENAMES ***"
print
sdlSymbols
.
AST
.
asn1_filenames
if
ogParser
.
USER_DEFINED_TYPES
:
print
"model contains user defined types"
template_gpr_sdl
=
'''with "dataview_ada";
project {pr} is
for Languages use ("SDL");
...
...
@@ -2042,7 +2048,6 @@ clean:
msg_box
=
QtGui
.
QMessageBox
(
self
)
msg_box
.
setIcon
(
QtGui
.
QMessageBox
.
Critical
)
msg_box
.
setWindowTitle
(
'OpenGEODE - Syntax Error'
)
#msg_box.setInformativeText('\n'.join(errs))
msg_box
.
setText
(
"Syntax errors were found. It is not advised to "
"save the model now, as you may not be able to "
"open it again. Are you sure you want to save?"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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