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
9159383c
Commit
9159383c
authored
Jan 21, 2015
by
Maxime Perrotin
Browse files
Merge branch 'master' of
https://github.com/maxime-esa/opengeode
parents
085d942d
36d32dc2
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
opengeode/AdaGenerator.py
View file @
9159383c
...
...
@@ -103,6 +103,7 @@ def generate(*args, **kwargs):
@
generate
.
register
(
ogAST
.
Process
)
def
_process
(
process
,
simu
=
False
,
**
kwargs
):
''' Generate the code for a complete process (AST Top level) '''
print
"SIMU="
,
simu
process_name
=
process
.
processName
global
TYPES
TYPES
=
process
.
dataview
...
...
opengeode/icons.py
View file @
9159383c
...
...
@@ -2,7 +2,7 @@
# Resource object code
#
# Created:
Sat Dec 13 17:01:44
201
4
# Created:
Wed Jan 21 14:27:19
201
5
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
opengeode/ogParser.py
View file @
9159383c
...
...
@@ -597,7 +597,7 @@ def check_range(typeref, type_to_check):
if
float
(
type_to_check
.
Min
)
<
float
(
typeref
.
Min
)
\
or
float
(
type_to_check
.
Max
)
>
float
(
typeref
.
Max
):
raise
Warning
(
'Expression evaluation in range [{}..{}], '
'outside expected range [{}..{}]'
'
could be
outside expected range [{}..{}]'
.
format
(
type_to_check
.
Min
,
type_to_check
.
Max
,
typeref
.
Min
,
typeref
.
Max
))
except
(
AttributeError
,
ValueError
):
...
...
@@ -1506,9 +1506,10 @@ def primary_index(root, context):
if
float
(
idx_bty
.
Max
)
>=
float
(
r_max
):
errors
.
append
(
error
(
root
,
'Index range [{id1} .. {id2}] '
'outside of range [
0
..
<
{r2}]'
'outside of range [
{r1}
.. {r2}]'
.
format
(
id1
=
idx_bty
.
Min
,
id2
=
idx_bty
.
Max
,
r2
=
r_max
)))
r1
=
int
(
r_min
)
-
1
,
r2
=
int
(
r_max
)
-
1
)))
elif
float
(
idx_bty
.
Min
)
>
float
(
r_min
):
warnings
.
append
(
warning
(
root
,
'Index higher than range min value'
))
...
...
opengeode/opengeode.py
View file @
9159383c
...
...
@@ -2051,7 +2051,7 @@ def generate(process, options):
if
options
.
toAda
or
options
.
shared
or
options
.
dll
:
LOG
.
info
(
'Generating Ada code'
)
try
:
AdaGenerator
.
generate
(
process
,
simu
=
options
.
dll
)
AdaGenerator
.
generate
(
process
,
simu
=
options
.
shared
)
except
(
TypeError
,
ValueError
,
NameError
)
as
err
:
LOG
.
error
(
str
(
err
))
LOG
.
debug
(
str
(
traceback
.
format_exc
()))
...
...
opengeode/sdl92Lexer.py
View file @
9159383c
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 201
4-12-13 17:01:47
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 201
5-01-21 14:27:21
import
sys
from
antlr3
import
*
...
...
opengeode/sdl92Parser.py
View file @
9159383c
This diff is collapsed.
Click to expand it.
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