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
5b15d19d
Commit
5b15d19d
authored
Jun 27, 2016
by
Maxime Perrotin
Browse files
Add testcase and support typeless systems
parent
9761fc77
Changes
6
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
5b15d19d
...
...
@@ -142,6 +142,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.
4.4 (06/2016)
-
Minor bugfix in Ada backend to support typeless systems
1.
4.3 (06/2016)
-
Add support for priority of continuous signals in Ada code generator
...
...
opengeode/AdaGenerator.py
View file @
5b15d19d
...
...
@@ -319,7 +319,8 @@ LD_LIBRARY_PATH=. opengeode-simulator
asn1_modules
=
'
\n
'
.
join
([
'with {dv};
\n
use {dv};'
.
format
(
dv
=
dv
.
replace
(
'-'
,
'_'
))
for
dv
in
process
.
asn1Modules
])
asn1_modules
+=
'
\n
with adaasn1rtl;
\n
use adaasn1rtl;'
if
process
.
asn1Modules
:
asn1_modules
+=
'
\n
with adaasn1rtl;
\n
use adaasn1rtl;'
except
TypeError
:
asn1_modules
=
'-- No ASN.1 data types are used in this model'
taste_template
=
[
'''
\
...
...
opengeode/opengeode.py
View file @
5b15d19d
...
...
@@ -134,7 +134,7 @@ except ImportError:
__all__
=
[
'opengeode'
,
'SDL_Scene'
,
'SDL_View'
,
'parse'
]
__version__
=
'1.4.
3
'
__version__
=
'1.4.
4
'
if
hasattr
(
sys
,
'frozen'
):
# Detect if we are running on Windows (py2exe-generated)
...
...
tests/regression/test-noparam/Makefile
0 → 100644
View file @
5b15d19d
include
../shared.mk
all
:
test-ada test-llvm
edit
:
$(OPENGEODE)
og.pr
test-parse
:
$(OPENGEODE)
og.pr
--check
test-ada
:
$(OPENGEODE)
og.pr
--toAda
$(GNATMAKE)
-O
$(O)
-c
*
.adb
$(GNATBIND)
-n
og.ali
test-c
:
$(OPENGEODE)
og.pr
--toC
$(CC)
-O
$(O)
-c
*
.c
test-llvm
:
$(OPENGEODE)
og.pr
--llvm
-O
$(O)
$(LLC)
*
.ll
$(CC)
-O
$(O)
-c
*
.s
coverage
:
coverage run
-p
$(OPENGEODE)
og.pr
--toAda
.PHONY
:
all edit test-parse test-ada test-llvm coverage
tests/regression/test-noparam/README
0 → 100644
View file @
5b15d19d
system without any dataview - check that it compiles fine
tests/regression/test-noparam/og.pr
0 → 100644
View file @
5b15d19d
SYSTEM og;
/* CIF TEXT (159, 221), (287, 188) */
-- Text area for declarations and comments
signal dd;
/* CIF ENDTEXT */
CHANNEL c
FROM ENV TO og WITH dd;
ENDCHANNEL;
BLOCK og;
SIGNALROUTE r
FROM ENV TO og WITH dd;
CONNECT c AND r;
/* CIF PROCESS (225, 49), (150, 75) */
PROCESS og;
/* CIF START (155, 216), (70, 35) */
START;
/* CIF NEXTSTATE (155, 266), (70, 35) */
NEXTSTATE wait;
/* CIF STATE (155, 266), (70, 35) */
STATE wait;
/* CIF INPUT (155, 321), (70, 35) */
INPUT dd;
/* CIF NEXTSTATE (155, 371), (70, 35) */
NEXTSTATE -;
ENDSTATE;
ENDPROCESS og;
ENDBLOCK;
ENDSYSTEM;
\ No newline at end of file
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