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
db23ae92
Commit
db23ae92
authored
May 18, 2016
by
Maxime Perrotin
Browse files
Add more syntactic predicates in ANTLR
parent
a0029596
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
db23ae92
...
...
@@ -142,7 +142,7 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.
3.2
3
(05/2016)
1.
3.2
4
(05/2016)
-
Fix reporting of syntax errors in state aggregations
1.
3.22 (05/2016)
...
...
opengeode/icons.py
View file @
db23ae92
...
...
@@ -2,7 +2,7 @@
# Resource object code
#
# Created:
Tue
May 1
7
1
6:27:03
2016
# Created:
Wed
May 1
8
1
4:18:26
2016
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
opengeode/opengeode.py
View file @
db23ae92
...
...
@@ -117,7 +117,7 @@ except ImportError:
__all__
=
[
'opengeode'
,
'SDL_Scene'
,
'SDL_View'
,
'parse'
]
__version__
=
'1.3.2
3
'
__version__
=
'1.3.2
4
'
if
hasattr
(
sys
,
'frozen'
):
# Detect if we are running on Windows (py2exe-generated)
...
...
opengeode/sdl92Lexer.py
View file @
db23ae92
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2016-05-1
7
1
6:27:05
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2016-05-1
8
1
4:18:28
import
sys
from
antlr3
import
*
...
...
opengeode/sdl92Parser.py
View file @
db23ae92
This diff is collapsed.
Click to expand it.
sdl92.g
View file @
db23ae92
...
...
@@ -257,7 +257,7 @@ process_definition
PROCESS process_id
number_of_instances? (':' type_inst)? REFERENCED? a=end
pfpar?
(text_area | procedure | composite_state)*
(text_area | procedure |
(composite_state_preamble) =>
composite_state)*
processBody? ENDPROCESS? process_id?
end?
-> ^(PROCESS cif? process_id number_of_instances? type_inst?
...
...
tests/parser/aggreg.py
View file @
db23ae92
...
...
@@ -66,3 +66,22 @@ STATE AGGREGATION DemoDeviceDACPStates;
test
.
composite_state
()
print
(
'from rm(2) - reports that start must be before state:'
)
test
=
opengeode
.
ogParser
.
parser_init
(
string
=
'''
process hello;
STATE AGGREGATION DemoDeviceDACPStates;
SUBSTRUCTURE
STATE INTERNAL_MAPPINGS;
SUBSTRUCTURE
STATE STATELESS;
ENDSTATE STATELESS;
START;
NEXTSTATE STATELESS;
ENDSUBSTRUCTURE INTERNAL_MAPPINGS;
ENDSUBSTRUCTURE DemoDeviceDACPStates;
end hello;
'''
)
test
.
process_definition
()
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