Commit 2b5ed1d5 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Z100 fix

parent 2bca53d2
......@@ -386,7 +386,10 @@ def _process(symbol, recursive=True, **kwargs):
result.extend(parse_scene(symbol.nested_scene))
Indent.indent -= 1
if ":" not in unicode(symbol):
result.append(u'endprocess {};'.format(unicode(symbol)))
result.append(u'endprocess {}{};'
.format("type " if isinstance(symbol, sdlSymbols.ProcessType)
else "",
unicode(symbol)))
return result
......
......@@ -2,7 +2,7 @@
 
# Resource object code
#
# Created: Sun Mar 19 12:13:43 2017
# Created: Mon Mar 20 13:33:15 2017
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2017-03-19 12:13:45
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2017-03-20 13:33:17
import sys
from antlr3 import *
......
This diff is collapsed.
......@@ -254,14 +254,14 @@ connection
*/
process_definition
: cif?
PROCESS TYPE? process_id
PROCESS t=TYPE? process_id
number_of_instances? (':' type_inst)? REFERENCED? a=end
pfpar?
(text_area | procedure | (composite_state_preamble) =>composite_state)*
processBody? ENDPROCESS? process_id?
processBody? ENDPROCESS? TYPE? process_id?
end?
-> ^(PROCESS cif? process_id number_of_instances? type_inst?
TYPE? REFERENCED? $a? pfpar? text_area* procedure*
$t? REFERENCED? $a? pfpar? text_area* procedure*
composite_state* processBody?)
;
......
......@@ -204,4 +204,4 @@ string';
NEXTSTATE Running;
enddecision;
endstate;
endprocess og_type;
\ No newline at end of file
endprocess type og_type;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment