Commit d30beaa9 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Add ground to support continuous signals

parent 82478100
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
   
# Resource object code # Resource object code
# #
# Created: Sun Nov 1 16:38:09 2015 # Created: Sun Nov 22 08:45:14 2015
# by: The Resource Compiler for PySide (Qt v4.8.4) # by: The Resource Compiler for PySide (Qt v4.8.6)
# #
# WARNING! All changes made in this file will be lost! # WARNING! All changes made in this file will be lost!
   
...@@ -2962,7 +2962,7 @@ def state(root, parent, context): ...@@ -2962,7 +2962,7 @@ def state(root, parent, context):
pass pass
else: else:
stwarn.append('Unsupported STATE definition child type: ' + stwarn.append('Unsupported STATE definition child type: ' +
str(child.type)) sdl92Parser.tokenNames[child.type])
# post-processing: if state is followed by an ASTERISK input, the exact # post-processing: if state is followed by an ASTERISK input, the exact
# list of inputs can be updated. Possible only if context has signals # list of inputs can be updated. Possible only if context has signals
if context.input_signals and asterisk_input: if context.input_signals and asterisk_input:
......
# $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2015-11-01 16:38:14 # $ANTLR 3.1.3 Mar 17, 2009 19:23:44 sdl92.g 2015-11-22 08:45:16
import sys import sys
from antlr3 import * from antlr3 import *
...@@ -458,8 +458,8 @@ class sdl92Lexer(Lexer): ...@@ -458,8 +458,8 @@ class sdl92Lexer(Lexer):
_type = ASSIG_OP _type = ASSIG_OP
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1413:17: ( ':=' ) # sdl92.g:1415:17: ( ':=' )
# sdl92.g:1413:25: ':=' # sdl92.g:1415:25: ':='
pass pass
self.match(":=") self.match(":=")
...@@ -483,8 +483,8 @@ class sdl92Lexer(Lexer): ...@@ -483,8 +483,8 @@ class sdl92Lexer(Lexer):
_type = L_BRACKET _type = L_BRACKET
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1414:17: ( '{' ) # sdl92.g:1416:17: ( '{' )
# sdl92.g:1414:25: '{' # sdl92.g:1416:25: '{'
pass pass
self.match(123) self.match(123)
...@@ -508,8 +508,8 @@ class sdl92Lexer(Lexer): ...@@ -508,8 +508,8 @@ class sdl92Lexer(Lexer):
_type = R_BRACKET _type = R_BRACKET
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1415:17: ( '}' ) # sdl92.g:1417:17: ( '}' )
# sdl92.g:1415:25: '}' # sdl92.g:1417:25: '}'
pass pass
self.match(125) self.match(125)
...@@ -533,8 +533,8 @@ class sdl92Lexer(Lexer): ...@@ -533,8 +533,8 @@ class sdl92Lexer(Lexer):
_type = L_PAREN _type = L_PAREN
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1416:17: ( '(' ) # sdl92.g:1418:17: ( '(' )
# sdl92.g:1416:25: '(' # sdl92.g:1418:25: '('
pass pass
self.match(40) self.match(40)
...@@ -558,8 +558,8 @@ class sdl92Lexer(Lexer): ...@@ -558,8 +558,8 @@ class sdl92Lexer(Lexer):
_type = R_PAREN _type = R_PAREN
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1417:17: ( ')' ) # sdl92.g:1419:17: ( ')' )
# sdl92.g:1417:25: ')' # sdl92.g:1419:25: ')'
pass pass
self.match(41) self.match(41)
...@@ -583,8 +583,8 @@ class sdl92Lexer(Lexer): ...@@ -583,8 +583,8 @@ class sdl92Lexer(Lexer):
_type = COMMA _type = COMMA
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1418:17: ( ',' ) # sdl92.g:1420:17: ( ',' )
# sdl92.g:1418:25: ',' # sdl92.g:1420:25: ','
pass pass
self.match(44) self.match(44)
...@@ -608,8 +608,8 @@ class sdl92Lexer(Lexer): ...@@ -608,8 +608,8 @@ class sdl92Lexer(Lexer):
_type = SEMI _type = SEMI
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1419:17: ( ';' ) # sdl92.g:1421:17: ( ';' )
# sdl92.g:1419:25: ';' # sdl92.g:1421:25: ';'
pass pass
self.match(59) self.match(59)
...@@ -633,8 +633,8 @@ class sdl92Lexer(Lexer): ...@@ -633,8 +633,8 @@ class sdl92Lexer(Lexer):
_type = DASH _type = DASH
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1420:17: ( '-' ) # sdl92.g:1422:17: ( '-' )
# sdl92.g:1420:25: '-' # sdl92.g:1422:25: '-'
pass pass
self.match(45) self.match(45)
...@@ -658,8 +658,8 @@ class sdl92Lexer(Lexer): ...@@ -658,8 +658,8 @@ class sdl92Lexer(Lexer):
_type = ANY _type = ANY
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1421:17: ( A N Y ) # sdl92.g:1423:17: ( A N Y )
# sdl92.g:1421:25: A N Y # sdl92.g:1423:25: A N Y
pass pass
self.mA() self.mA()
self.mN() self.mN()
...@@ -685,8 +685,8 @@ class sdl92Lexer(Lexer): ...@@ -685,8 +685,8 @@ class sdl92Lexer(Lexer):
_type = ASTERISK _type = ASTERISK
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1422:17: ( '*' ) # sdl92.g:1424:17: ( '*' )
# sdl92.g:1422:25: '*' # sdl92.g:1424:25: '*'
pass pass
self.match(42) self.match(42)
...@@ -710,8 +710,8 @@ class sdl92Lexer(Lexer): ...@@ -710,8 +710,8 @@ class sdl92Lexer(Lexer):
_type = DCL _type = DCL
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1423:17: ( D C L ) # sdl92.g:1425:17: ( D C L )
# sdl92.g:1423:25: D C L # sdl92.g:1425:25: D C L
pass pass
self.mD() self.mD()
self.mC() self.mC()
...@@ -737,8 +737,8 @@ class sdl92Lexer(Lexer): ...@@ -737,8 +737,8 @@ class sdl92Lexer(Lexer):
_type = END _type = END
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1424:17: ( E N D ) # sdl92.g:1426:17: ( E N D )
# sdl92.g:1424:25: E N D # sdl92.g:1426:25: E N D
pass pass
self.mE() self.mE()
self.mN() self.mN()
...@@ -764,8 +764,8 @@ class sdl92Lexer(Lexer): ...@@ -764,8 +764,8 @@ class sdl92Lexer(Lexer):
_type = KEEP _type = KEEP
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1425:17: ( K E E P ) # sdl92.g:1427:17: ( K E E P )
# sdl92.g:1425:25: K E E P # sdl92.g:1427:25: K E E P
pass pass
self.mK() self.mK()
self.mE() self.mE()
...@@ -792,8 +792,8 @@ class sdl92Lexer(Lexer): ...@@ -792,8 +792,8 @@ class sdl92Lexer(Lexer):
_type = PARAMNAMES _type = PARAMNAMES
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1426:17: ( P A R A M N A M E S ) # sdl92.g:1428:17: ( P A R A M N A M E S )
# sdl92.g:1426:25: P A R A M N A M E S # sdl92.g:1428:25: P A R A M N A M E S
pass pass
self.mP() self.mP()
self.mA() self.mA()
...@@ -826,8 +826,8 @@ class sdl92Lexer(Lexer): ...@@ -826,8 +826,8 @@ class sdl92Lexer(Lexer):
_type = SPECIFIC _type = SPECIFIC
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1427:17: ( S P E C I F I C ) # sdl92.g:1429:17: ( S P E C I F I C )
# sdl92.g:1427:25: S P E C I F I C # sdl92.g:1429:25: S P E C I F I C
pass pass
self.mS() self.mS()
self.mP() self.mP()
...@@ -858,8 +858,8 @@ class sdl92Lexer(Lexer): ...@@ -858,8 +858,8 @@ class sdl92Lexer(Lexer):
_type = GEODE _type = GEODE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1428:17: ( G E O D E ) # sdl92.g:1430:17: ( G E O D E )
# sdl92.g:1428:25: G E O D E # sdl92.g:1430:25: G E O D E
pass pass
self.mG() self.mG()
self.mE() self.mE()
...@@ -887,8 +887,8 @@ class sdl92Lexer(Lexer): ...@@ -887,8 +887,8 @@ class sdl92Lexer(Lexer):
_type = HYPERLINK _type = HYPERLINK
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1429:17: ( H Y P E R L I N K ) # sdl92.g:1431:17: ( H Y P E R L I N K )
# sdl92.g:1429:25: H Y P E R L I N K # sdl92.g:1431:25: H Y P E R L I N K
pass pass
self.mH() self.mH()
self.mY() self.mY()
...@@ -920,8 +920,8 @@ class sdl92Lexer(Lexer): ...@@ -920,8 +920,8 @@ class sdl92Lexer(Lexer):
_type = ENDTEXT _type = ENDTEXT
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1430:17: ( E N D T E X T ) # sdl92.g:1432:17: ( E N D T E X T )
# sdl92.g:1430:25: E N D T E X T # sdl92.g:1432:25: E N D T E X T
pass pass
self.mE() self.mE()
self.mN() self.mN()
...@@ -951,8 +951,8 @@ class sdl92Lexer(Lexer): ...@@ -951,8 +951,8 @@ class sdl92Lexer(Lexer):
_type = RETURN _type = RETURN
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1431:17: ( R E T U R N ) # sdl92.g:1433:17: ( R E T U R N )
# sdl92.g:1431:25: R E T U R N # sdl92.g:1433:25: R E T U R N
pass pass
self.mR() self.mR()
self.mE() self.mE()
...@@ -981,8 +981,8 @@ class sdl92Lexer(Lexer): ...@@ -981,8 +981,8 @@ class sdl92Lexer(Lexer):
_type = TIMER _type = TIMER
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1432:17: ( T I M E R ) # sdl92.g:1434:17: ( T I M E R )
# sdl92.g:1432:25: T I M E R # sdl92.g:1434:25: T I M E R
pass pass
self.mT() self.mT()
self.mI() self.mI()
...@@ -1010,8 +1010,8 @@ class sdl92Lexer(Lexer): ...@@ -1010,8 +1010,8 @@ class sdl92Lexer(Lexer):
_type = PROCESS _type = PROCESS
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1433:17: ( P R O C E S S ) # sdl92.g:1435:17: ( P R O C E S S )
# sdl92.g:1433:25: P R O C E S S # sdl92.g:1435:25: P R O C E S S
pass pass
self.mP() self.mP()
self.mR() self.mR()
...@@ -1041,8 +1041,8 @@ class sdl92Lexer(Lexer): ...@@ -1041,8 +1041,8 @@ class sdl92Lexer(Lexer):
_type = ENDPROCESS _type = ENDPROCESS
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1434:17: ( E N D P R O C E S S ) # sdl92.g:1436:17: ( E N D P R O C E S S )
# sdl92.g:1434:25: E N D P R O C E S S # sdl92.g:1436:25: E N D P R O C E S S
pass pass
self.mE() self.mE()
self.mN() self.mN()
...@@ -1075,8 +1075,8 @@ class sdl92Lexer(Lexer): ...@@ -1075,8 +1075,8 @@ class sdl92Lexer(Lexer):
_type = START _type = START
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1435:17: ( S T A R T ) # sdl92.g:1437:17: ( S T A R T )
# sdl92.g:1435:25: S T A R T # sdl92.g:1437:25: S T A R T
pass pass
self.mS() self.mS()
self.mT() self.mT()
...@@ -1104,8 +1104,8 @@ class sdl92Lexer(Lexer): ...@@ -1104,8 +1104,8 @@ class sdl92Lexer(Lexer):
_type = STATE _type = STATE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1436:17: ( S T A T E ) # sdl92.g:1438:17: ( S T A T E )
# sdl92.g:1436:25: S T A T E # sdl92.g:1438:25: S T A T E
pass pass
self.mS() self.mS()
self.mT() self.mT()
...@@ -1133,8 +1133,8 @@ class sdl92Lexer(Lexer): ...@@ -1133,8 +1133,8 @@ class sdl92Lexer(Lexer):
_type = TEXT _type = TEXT
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1437:17: ( T E X T ) # sdl92.g:1439:17: ( T E X T )
# sdl92.g:1437:25: T E X T # sdl92.g:1439:25: T E X T
pass pass
self.mT() self.mT()
self.mE() self.mE()
...@@ -1161,8 +1161,8 @@ class sdl92Lexer(Lexer): ...@@ -1161,8 +1161,8 @@ class sdl92Lexer(Lexer):
_type = PROCEDURE _type = PROCEDURE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1438:17: ( P R O C E D U R E ) # sdl92.g:1440:17: ( P R O C E D U R E )
# sdl92.g:1438:25: P R O C E D U R E # sdl92.g:1440:25: P R O C E D U R E
pass pass
self.mP() self.mP()
self.mR() self.mR()
...@@ -1194,8 +1194,8 @@ class sdl92Lexer(Lexer): ...@@ -1194,8 +1194,8 @@ class sdl92Lexer(Lexer):
_type = ENDPROCEDURE _type = ENDPROCEDURE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1439:17: ( E N D P R O C E D U R E ) # sdl92.g:1441:17: ( E N D P R O C E D U R E )
# sdl92.g:1439:25: E N D P R O C E D U R E # sdl92.g:1441:25: E N D P R O C E D U R E
pass pass
self.mE() self.mE()
self.mN() self.mN()
...@@ -1230,8 +1230,8 @@ class sdl92Lexer(Lexer): ...@@ -1230,8 +1230,8 @@ class sdl92Lexer(Lexer):
_type = PROCEDURE_CALL _type = PROCEDURE_CALL
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1440:17: ( P R O C E D U R E C A L L ) # sdl92.g:1442:17: ( P R O C E D U R E C A L L )
# sdl92.g:1440:25: P R O C E D U R E C A L L # sdl92.g:1442:25: P R O C E D U R E C A L L
pass pass
self.mP() self.mP()
self.mR() self.mR()
...@@ -1267,8 +1267,8 @@ class sdl92Lexer(Lexer): ...@@ -1267,8 +1267,8 @@ class sdl92Lexer(Lexer):
_type = ENDSTATE _type = ENDSTATE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1441:17: ( E N D S T A T E ) # sdl92.g:1443:17: ( E N D S T A T E )
# sdl92.g:1441:25: E N D S T A T E # sdl92.g:1443:25: E N D S T A T E
pass pass
self.mE() self.mE()
self.mN() self.mN()
...@@ -1299,8 +1299,8 @@ class sdl92Lexer(Lexer): ...@@ -1299,8 +1299,8 @@ class sdl92Lexer(Lexer):
_type = INPUT _type = INPUT
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1442:17: ( I N P U T ) # sdl92.g:1444:17: ( I N P U T )
# sdl92.g:1442:25: I N P U T # sdl92.g:1444:25: I N P U T
pass pass
self.mI() self.mI()
self.mN() self.mN()
...@@ -1328,8 +1328,8 @@ class sdl92Lexer(Lexer): ...@@ -1328,8 +1328,8 @@ class sdl92Lexer(Lexer):
_type = PROVIDED _type = PROVIDED
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1443:17: ( P R O V I D E D ) # sdl92.g:1445:17: ( P R O V I D E D )
# sdl92.g:1443:25: P R O V I D E D # sdl92.g:1445:25: P R O V I D E D
pass pass
self.mP() self.mP()
self.mR() self.mR()
...@@ -1360,8 +1360,8 @@ class sdl92Lexer(Lexer): ...@@ -1360,8 +1360,8 @@ class sdl92Lexer(Lexer):
_type = PRIORITY _type = PRIORITY
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1444:17: ( P R I O R I T Y ) # sdl92.g:1446:17: ( P R I O R I T Y )
# sdl92.g:1444:25: P R I O R I T Y # sdl92.g:1446:25: P R I O R I T Y
pass pass
self.mP() self.mP()
self.mR() self.mR()
...@@ -1392,8 +1392,8 @@ class sdl92Lexer(Lexer): ...@@ -1392,8 +1392,8 @@ class sdl92Lexer(Lexer):
_type = SAVE _type = SAVE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1445:17: ( S A V E ) # sdl92.g:1447:17: ( S A V E )
# sdl92.g:1445:25: S A V E # sdl92.g:1447:25: S A V E
pass pass
self.mS() self.mS()
self.mA() self.mA()
...@@ -1420,8 +1420,8 @@ class sdl92Lexer(Lexer): ...@@ -1420,8 +1420,8 @@ class sdl92Lexer(Lexer):
_type = NONE _type = NONE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1446:17: ( N O N E ) # sdl92.g:1448:17: ( N O N E )
# sdl92.g:1446:25: N O N E # sdl92.g:1448:25: N O N E
pass pass
self.mN() self.mN()
self.mO() self.mO()
...@@ -1448,8 +1448,8 @@ class sdl92Lexer(Lexer): ...@@ -1448,8 +1448,8 @@ class sdl92Lexer(Lexer):
_type = FOR _type = FOR
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1453:17: ( F O R ) # sdl92.g:1455:17: ( F O R )
# sdl92.g:1453:25: F O R # sdl92.g:1455:25: F O R
pass pass
self.mF() self.mF()
self.mO() self.mO()
...@@ -1475,8 +1475,8 @@ class sdl92Lexer(Lexer): ...@@ -1475,8 +1475,8 @@ class sdl92Lexer(Lexer):
_type = ENDFOR _type = ENDFOR
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1454:17: ( E N D F O R ) # sdl92.g:1456:17: ( E N D F O R )
# sdl92.g:1454:25: E N D F O R # sdl92.g:1456:25: E N D F O R
pass pass
self.mE() self.mE()
self.mN() self.mN()
...@@ -1505,8 +1505,8 @@ class sdl92Lexer(Lexer): ...@@ -1505,8 +1505,8 @@ class sdl92Lexer(Lexer):
_type = RANGE _type = RANGE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1455:17: ( R A N G E ) # sdl92.g:1457:17: ( R A N G E )
# sdl92.g:1455:25: R A N G E # sdl92.g:1457:25: R A N G E
pass pass
self.mR() self.mR()
self.mA() self.mA()
...@@ -1534,8 +1534,8 @@ class sdl92Lexer(Lexer): ...@@ -1534,8 +1534,8 @@ class sdl92Lexer(Lexer):
_type = NEXTSTATE _type = NEXTSTATE
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1456:17: ( N E X T S T A T E ) # sdl92.g:1458:17: ( N E X T S T A T E )
# sdl92.g:1456:25: N E X T S T A T E # sdl92.g:1458:25: N E X T S T A T E
pass pass
self.mN() self.mN()
self.mE() self.mE()
...@@ -1567,8 +1567,8 @@ class sdl92Lexer(Lexer): ...@@ -1567,8 +1567,8 @@ class sdl92Lexer(Lexer):
_type = ANSWER _type = ANSWER
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1457:17: ( A N S W E R ) # sdl92.g:1459:17: ( A N S W E R )
# sdl92.g:1457:25: A N S W E R # sdl92.g:1459:25: A N S W E R
pass pass
self.mA() self.mA()
self.mN() self.mN()
...@@ -1597,8 +1597,8 @@ class sdl92Lexer(Lexer): ...@@ -1597,8 +1597,8 @@ class sdl92Lexer(Lexer):
_type = COMMENT _type = COMMENT
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL
# sdl92.g:1458:17: ( C O M M E N T ) # sdl92.g:1460:17: ( C O M M E N T )
# sdl92.g:1458:25: C O M M E N T # sdl92.g:1460:25: C O M M E N T
pass pass
self.mC() self.mC()
self.mO() self.mO()
...@@ -1628,8 +1628,8 @@ class sdl92Lexer(Lexer): ...@@ -1628,8 +1628,8 @@ class sdl92Lexer(Lexer):
_type = LABEL _type = LABEL
_channel = DEFAULT_CHANNEL _channel = DEFAULT_CHANNEL