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

Add ground to support continuous signals

parent 82478100
......@@ -2,8 +2,8 @@
 
# Resource object code
#
# Created: Sun Nov 1 16:38:09 2015
# by: The Resource Compiler for PySide (Qt v4.8.4)
# Created: Sun Nov 22 08:45:14 2015
# by: The Resource Compiler for PySide (Qt v4.8.6)
#
# WARNING! All changes made in this file will be lost!
 
......@@ -2962,7 +2962,7 @@ def state(root, parent, context):
pass
else:
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
# list of inputs can be updated. Possible only if context has signals
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
from antlr3 import *
......@@ -458,8 +458,8 @@ class sdl92Lexer(Lexer):
_type = ASSIG_OP
_channel = DEFAULT_CHANNEL
# sdl92.g:1413:17: ( ':=' )
# sdl92.g:1413:25: ':='
# sdl92.g:1415:17: ( ':=' )
# sdl92.g:1415:25: ':='
pass
self.match(":=")
......@@ -483,8 +483,8 @@ class sdl92Lexer(Lexer):
_type = L_BRACKET
_channel = DEFAULT_CHANNEL
# sdl92.g:1414:17: ( '{' )
# sdl92.g:1414:25: '{'
# sdl92.g:1416:17: ( '{' )
# sdl92.g:1416:25: '{'
pass
self.match(123)
......@@ -508,8 +508,8 @@ class sdl92Lexer(Lexer):
_type = R_BRACKET
_channel = DEFAULT_CHANNEL
# sdl92.g:1415:17: ( '}' )
# sdl92.g:1415:25: '}'
# sdl92.g:1417:17: ( '}' )
# sdl92.g:1417:25: '}'
pass
self.match(125)
......@@ -533,8 +533,8 @@ class sdl92Lexer(Lexer):
_type = L_PAREN
_channel = DEFAULT_CHANNEL
# sdl92.g:1416:17: ( '(' )
# sdl92.g:1416:25: '('
# sdl92.g:1418:17: ( '(' )
# sdl92.g:1418:25: '('
pass
self.match(40)
......@@ -558,8 +558,8 @@ class sdl92Lexer(Lexer):
_type = R_PAREN
_channel = DEFAULT_CHANNEL
# sdl92.g:1417:17: ( ')' )
# sdl92.g:1417:25: ')'
# sdl92.g:1419:17: ( ')' )
# sdl92.g:1419:25: ')'
pass
self.match(41)
......@@ -583,8 +583,8 @@ class sdl92Lexer(Lexer):
_type = COMMA
_channel = DEFAULT_CHANNEL
# sdl92.g:1418:17: ( ',' )
# sdl92.g:1418:25: ','
# sdl92.g:1420:17: ( ',' )
# sdl92.g:1420:25: ','
pass
self.match(44)
......@@ -608,8 +608,8 @@ class sdl92Lexer(Lexer):
_type = SEMI
_channel = DEFAULT_CHANNEL
# sdl92.g:1419:17: ( ';' )
# sdl92.g:1419:25: ';'
# sdl92.g:1421:17: ( ';' )
# sdl92.g:1421:25: ';'
pass
self.match(59)
......@@ -633,8 +633,8 @@ class sdl92Lexer(Lexer):
_type = DASH
_channel = DEFAULT_CHANNEL
# sdl92.g:1420:17: ( '-' )
# sdl92.g:1420:25: '-'
# sdl92.g:1422:17: ( '-' )
# sdl92.g:1422:25: '-'
pass
self.match(45)
......@@ -658,8 +658,8 @@ class sdl92Lexer(Lexer):
_type = ANY
_channel = DEFAULT_CHANNEL
# sdl92.g:1421:17: ( A N Y )
# sdl92.g:1421:25: A N Y
# sdl92.g:1423:17: ( A N Y )
# sdl92.g:1423:25: A N Y
pass
self.mA()
self.mN()
......@@ -685,8 +685,8 @@ class sdl92Lexer(Lexer):
_type = ASTERISK
_channel = DEFAULT_CHANNEL
# sdl92.g:1422:17: ( '*' )
# sdl92.g:1422:25: '*'
# sdl92.g:1424:17: ( '*' )
# sdl92.g:1424:25: '*'
pass
self.match(42)
......@@ -710,8 +710,8 @@ class sdl92Lexer(Lexer):
_type = DCL
_channel = DEFAULT_CHANNEL
# sdl92.g:1423:17: ( D C L )
# sdl92.g:1423:25: D C L
# sdl92.g:1425:17: ( D C L )
# sdl92.g:1425:25: D C L
pass
self.mD()
self.mC()
......@@ -737,8 +737,8 @@ class sdl92Lexer(Lexer):
_type = END
_channel = DEFAULT_CHANNEL
# sdl92.g:1424:17: ( E N D )
# sdl92.g:1424:25: E N D
# sdl92.g:1426:17: ( E N D )
# sdl92.g:1426:25: E N D
pass
self.mE()
self.mN()
......@@ -764,8 +764,8 @@ class sdl92Lexer(Lexer):
_type = KEEP
_channel = DEFAULT_CHANNEL
# sdl92.g:1425:17: ( K E E P )
# sdl92.g:1425:25: K E E P
# sdl92.g:1427:17: ( K E E P )
# sdl92.g:1427:25: K E E P
pass
self.mK()
self.mE()
......@@ -792,8 +792,8 @@ class sdl92Lexer(Lexer):
_type = PARAMNAMES
_channel = DEFAULT_CHANNEL
# sdl92.g:1426: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:17: ( 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
self.mP()
self.mA()
......@@ -826,8 +826,8 @@ class sdl92Lexer(Lexer):
_type = SPECIFIC
_channel = DEFAULT_CHANNEL
# sdl92.g:1427:17: ( S P E C I F I C )
# sdl92.g:1427:25: S P E C I F I C
# sdl92.g:1429:17: ( S P E C I F I C )
# sdl92.g:1429:25: S P E C I F I C
pass
self.mS()
self.mP()
......@@ -858,8 +858,8 @@ class sdl92Lexer(Lexer):
_type = GEODE
_channel = DEFAULT_CHANNEL
# sdl92.g:1428:17: ( G E O D E )
# sdl92.g:1428:25: G E O D E
# sdl92.g:1430:17: ( G E O D E )
# sdl92.g:1430:25: G E O D E
pass
self.mG()
self.mE()
......@@ -887,8 +887,8 @@ class sdl92Lexer(Lexer):
_type = HYPERLINK
_channel = DEFAULT_CHANNEL
# sdl92.g:1429: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:17: ( H Y P E R L I N K )
# sdl92.g:1431:25: H Y P E R L I N K
pass
self.mH()
self.mY()
......@@ -920,8 +920,8 @@ class sdl92Lexer(Lexer):
_type = ENDTEXT
_channel = DEFAULT_CHANNEL
# sdl92.g:1430:17: ( E N D T E X T )
# sdl92.g:1430:25: E N D T E X T
# sdl92.g:1432:17: ( E N D T E X T )
# sdl92.g:1432:25: E N D T E X T
pass
self.mE()
self.mN()
......@@ -951,8 +951,8 @@ class sdl92Lexer(Lexer):
_type = RETURN
_channel = DEFAULT_CHANNEL
# sdl92.g:1431:17: ( R E T U R N )
# sdl92.g:1431:25: R E T U R N
# sdl92.g:1433:17: ( R E T U R N )
# sdl92.g:1433:25: R E T U R N
pass
self.mR()
self.mE()
......@@ -981,8 +981,8 @@ class sdl92Lexer(Lexer):
_type = TIMER
_channel = DEFAULT_CHANNEL
# sdl92.g:1432:17: ( T I M E R )
# sdl92.g:1432:25: T I M E R
# sdl92.g:1434:17: ( T I M E R )
# sdl92.g:1434:25: T I M E R
pass
self.mT()
self.mI()
......@@ -1010,8 +1010,8 @@ class sdl92Lexer(Lexer):
_type = PROCESS
_channel = DEFAULT_CHANNEL
# sdl92.g:1433:17: ( P R O C E S S )
# sdl92.g:1433:25: P R O C E S S
# sdl92.g:1435:17: ( P R O C E S S )
# sdl92.g:1435:25: P R O C E S S
pass
self.mP()
self.mR()
......@@ -1041,8 +1041,8 @@ class sdl92Lexer(Lexer):
_type = ENDPROCESS
_channel = DEFAULT_CHANNEL
# sdl92.g:1434: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:17: ( 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
self.mE()
self.mN()
......@@ -1075,8 +1075,8 @@ class sdl92Lexer(Lexer):
_type = START
_channel = DEFAULT_CHANNEL
# sdl92.g:1435:17: ( S T A R T )
# sdl92.g:1435:25: S T A R T
# sdl92.g:1437:17: ( S T A R T )
# sdl92.g:1437:25: S T A R T
pass
self.mS()
self.mT()
......@@ -1104,8 +1104,8 @@ class sdl92Lexer(Lexer):
_type = STATE
_channel = DEFAULT_CHANNEL
# sdl92.g:1436:17: ( S T A T E )
# sdl92.g:1436:25: S T A T E
# sdl92.g:1438:17: ( S T A T E )
# sdl92.g:1438:25: S T A T E
pass
self.mS()
self.mT()
......@@ -1133,8 +1133,8 @@ class sdl92Lexer(Lexer):
_type = TEXT
_channel = DEFAULT_CHANNEL
# sdl92.g:1437:17: ( T E X T )
# sdl92.g:1437:25: T E X T
# sdl92.g:1439:17: ( T E X T )
# sdl92.g:1439:25: T E X T
pass
self.mT()
self.mE()
......@@ -1161,8 +1161,8 @@ class sdl92Lexer(Lexer):
_type = PROCEDURE
_channel = DEFAULT_CHANNEL
# sdl92.g:1438: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:17: ( P R O C E D U R E )
# sdl92.g:1440:25: P R O C E D U R E
pass
self.mP()
self.mR()
......@@ -1194,8 +1194,8 @@ class sdl92Lexer(Lexer):
_type = ENDPROCEDURE
_channel = DEFAULT_CHANNEL
# sdl92.g:1439: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:17: ( 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
self.mE()
self.mN()
......@@ -1230,8 +1230,8 @@ class sdl92Lexer(Lexer):
_type = PROCEDURE_CALL
_channel = DEFAULT_CHANNEL
# sdl92.g:1440: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:17: ( 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
self.mP()
self.mR()
......@@ -1267,8 +1267,8 @@ class sdl92Lexer(Lexer):
_type = ENDSTATE
_channel = DEFAULT_CHANNEL
# sdl92.g:1441:17: ( E N D S T A T E )
# sdl92.g:1441:25: E N D S T A T E
# sdl92.g:1443:17: ( E N D S T A T E )
# sdl92.g:1443:25: E N D S T A T E
pass
self.mE()
self.mN()
......@@ -1299,8 +1299,8 @@ class sdl92Lexer(Lexer):
_type = INPUT
_channel = DEFAULT_CHANNEL
# sdl92.g:1442:17: ( I N P U T )
# sdl92.g:1442:25: I N P U T
# sdl92.g:1444:17: ( I N P U T )
# sdl92.g:1444:25: I N P U T
pass
self.mI()
self.mN()
......@@ -1328,8 +1328,8 @@ class sdl92Lexer(Lexer):
_type = PROVIDED
_channel = DEFAULT_CHANNEL
# sdl92.g:1443:17: ( P R O V I D E D )
# sdl92.g:1443:25: P R O V I D E D
# sdl92.g:1445:17: ( P R O V I D E D )
# sdl92.g:1445:25: P R O V I D E D
pass
self.mP()
self.mR()
......@@ -1360,8 +1360,8 @@ class sdl92Lexer(Lexer):
_type = PRIORITY
_channel = DEFAULT_CHANNEL
# sdl92.g:1444:17: ( P R I O R I T Y )
# sdl92.g:1444:25: P R I O R I T Y
# sdl92.g:1446:17: ( P R I O R I T Y )
# sdl92.g:1446:25: P R I O R I T Y
pass
self.mP()
self.mR()
......@@ -1392,8 +1392,8 @@ class sdl92Lexer(Lexer):
_type = SAVE
_channel = DEFAULT_CHANNEL
# sdl92.g:1445:17: ( S A V E )
# sdl92.g:1445:25: S A V E
# sdl92.g:1447:17: ( S A V E )
# sdl92.g:1447:25: S A V E
pass
self.mS()
self.mA()
......@@ -1420,8 +1420,8 @@ class sdl92Lexer(Lexer):
_type = NONE
_channel = DEFAULT_CHANNEL
# sdl92.g:1446:17: ( N O N E )
# sdl92.g:1446:25: N O N E
# sdl92.g:1448:17: ( N O N E )
# sdl92.g:1448:25: N O N E
pass
self.mN()
self.mO()
......@@ -1448,8 +1448,8 @@ class sdl92Lexer(Lexer):
_type = FOR
_channel = DEFAULT_CHANNEL
# sdl92.g:1453:17: ( F O R )
# sdl92.g:1453:25: F O R
# sdl92.g:1455:17: ( F O R )
# sdl92.g:1455:25: F O R
pass
self.mF()
self.mO()
......@@ -1475,8 +1475,8 @@ class sdl92Lexer(Lexer):
_type = ENDFOR
_channel = DEFAULT_CHANNEL
# sdl92.g:1454:17: ( E N D F O R )
# sdl92.g:1454:25: E N D F O R
# sdl92.g:1456:17: ( E N D F O R )
# sdl92.g:1456:25: E N D F O R
pass
self.mE()
self.mN()
......@@ -1505,8 +1505,8 @@ class sdl92Lexer(Lexer):
_type = RANGE
_channel = DEFAULT_CHANNEL
# sdl92.g:1455:17: ( R A N G E )
# sdl92.g:1455:25: R A N G E
# sdl92.g:1457:17: ( R A N G E )
# sdl92.g:1457:25: R A N G E
pass
self.mR()
self.mA()
......@@ -1534,8 +1534,8 @@ class sdl92Lexer(Lexer):
_type = NEXTSTATE
_channel = DEFAULT_CHANNEL
# sdl92.g:1456: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:17: ( N E X T S T A T E )
# sdl92.g:1458:25: N E X T S T A T E
pass
self.mN()
self.mE()
......@@ -1567,8 +1567,8 @@ class sdl92Lexer(Lexer):
_type = ANSWER
_channel = DEFAULT_CHANNEL
# sdl92.g:1457:17: ( A N S W E R )
# sdl92.g:1457:25: A N S W E R
# sdl92.g:1459:17: ( A N S W E R )
# sdl92.g:1459:25: A N S W E R
pass
self.mA()
self.mN()
......@@ -1597,8 +1597,8 @@ class sdl92Lexer(Lexer):
_type = COMMENT
_channel = DEFAULT_CHANNEL
# sdl92.g:1458:17: ( C O M M E N T )
# sdl92.g:1458:25: C O M M E N T
# sdl92.g:1460:17: ( C O M M E N T )
# sdl92.g:1460:25: C O M M E N T
pass
self.mC()
self.mO()
......@@ -1628,8 +1628,8 @@ class sdl92Lexer(Lexer):
_type = LABEL
_channel = DEFAULT_CHANNEL
# sdl92.g:1459:17: ( L A B E L )
# sdl92.g:1459:25: L A B E L
# sdl92.g:1461:17: ( L A B E L )
# sdl92.g:1461:25: L A B E L
pass
self.mL()
self.mA()
......@@ -1657,8 +1657,8 @@ class sdl92Lexer(Lexer):
_type = STOP
_channel = DEFAULT_CHANNEL
# sdl92.g:1460:17: ( S T O P )
# sdl92.g:1460:25: S T O P
# sdl92.g:1462:17: ( S T O P )
# sdl92.g:1462:25: S T O P
pass
self.mS()
self.mT()
......@@ -1685,8 +1685,8 @@ class sdl92Lexer(Lexer):
_type = IF
_channel = DEFAULT_CHANNEL
# sdl92.g:1461:17: ( I F )
# sdl92.g:1461:25: I F
# sdl92.g:1463:17: ( I F )
# sdl92.g:1463:25: I F
pass
self.mI()
self.mF()
......@@ -1711,8 +1711,8 @@ class sdl92Lexer(Lexer):
_type = THEN
_channel = DEFAULT_CHANNEL
# sdl92.g:1462:17: ( T H E N )
# sdl92.g:1462:25: T H E N
# sdl92.g:1464:17: ( T H E N )
# sdl92.g:1464:25: T H E N
pass
self.mT()
self.mH()
......@@ -1739,8 +1739,8 @@ class sdl92Lexer(Lexer):
_type = ELSE
_channel = DEFAULT_CHANNEL
# sdl92.g:1463:17: ( E L S E )
# sdl92.g:1463:25: E L S E
# sdl92.g:1465:17: ( E L S E )
# sdl92.g:1465:25: E L S E
pass
self.mE()
self.mL()
......@@ -1767,8 +1767,8 @@ class sdl92Lexer(Lexer):
_type = FI
_channel = DEFAULT_CHANNEL
# sdl92.g:1464:17: ( F I )
# sdl92.g:1464:25: F I
# sdl92.g:1466:17: ( F I )
# sdl92.g:1466:25: F I
pass
self.mF()
self.mI()
......@@ -1793,8 +1793,8 @@ class sdl92Lexer(Lexer):
_type = CREATE
_channel = DEFAULT_CHANNEL
# sdl92.g:1465:17: ( C R E A T E )
# sdl92.g:1465:25: C R E A T E
# sdl92.g:1467:17: ( C R E A T E )
# sdl92.g:1467:25: C R E A T E
pass
self.mC()
self.mR()
......@@ -1823,8 +1823,8 @@ class sdl92Lexer(Lexer):
_type = OUTPUT
_channel = DEFAULT_CHANNEL
# sdl92.g:1466:17: ( O U T P U T )
# sdl92.g:1466:25: O U T P U T
# sdl92.g:1468:17: ( O U T P U T )
# sdl92.g:1468:25: O U T P U T
pass
self.mO()
self.mU()
......@@ -1853,8 +1853,8 @@ class sdl92Lexer(Lexer):
_type = CALL
_channel = DEFAULT_CHANNEL
# sdl92.g:1467:17: ( C A L L )
# sdl92.g:1467:25: C A L L
# sdl92.g:1469:17: ( C A L L )
# sdl92.g:1469:25: C A L L
pass
self.mC()
self.mA()
......@@ -1881,8 +1881,8 @@ class sdl92Lexer(Lexer):
_type = THIS
_channel = DEFAULT_CHANNEL
# sdl92.g:1468:17: ( T H I S )
# sdl92.g:1468:25: T H I S
# sdl92.g:1470:17: ( T H I S )
# sdl92.g:1470:25: T H I S
pass
self.mT()
self.mH()
......@@ -1909,8 +1909,8 @@ class sdl92Lexer(Lexer):
_type = SET
_channel = DEFAULT_CHANNEL
# sdl92.g:1469:17: ( S E T )
# sdl92.g:1469:25: S E T
# sdl92.g:1471:17: ( S E T )
# sdl92.g:1471:25: S E T
pass
self.mS()
self.mE()
......@@ -1936,8 +1936,8 @@ class sdl92Lexer(Lexer):
_type = RESET
_channel = DEFAULT_CHANNEL
# sdl92.g:1470:17: ( R E S E T )
# sdl92.g:1470:25: R E S E T
# sdl92.g:1472:17: ( R E S E T )
# sdl92.g:1472:25: R E S E T
pass
self.mR()
self.mE()
......@@ -1965,8 +1965,8 @@ class sdl92Lexer(Lexer):
_type = ENDALTERNATIVE
_channel = DEFAULT_CHANNEL
# sdl92.g:1471:17: ( E N D A L T E R N A T I V E )
# sdl92.g:1471:25: E N D A L T E R N A T I V E
# sdl92.g:1473:17: ( E N D A L T E R N A T I V E )
# sdl92.g:1473:25: E N D A L T E R N A T I V E
pass
self.mE()
self.mN()
......@@ -2003,8 +2003,8 @@ class sdl92Lexer(Lexer):
_type = ALTERNATIVE
_channel = DEFAULT_CHANNEL
# sdl92.g:1472:17: ( A L T E R N A T I V E )
# sdl92.g:1472:25: A L T E R N A T I V E
# sdl92.g:1474:17: ( A L T E R N A T I V E )
# sdl92.g:1474:25: A L T E R N A T I V E
pass
self.mA()
self.mL()
......@@ -2038,8 +2038,8 @@ class sdl92Lexer(Lexer):
_type = DEFAULT
_channel = DEFAULT_CHANNEL
# sdl92.g:1473:17: ( D E F A U L T )
# sdl92.g:1473:25: D E F A U L T
# sdl92.g:1475:17: ( D E F A U L T )
# sdl92.g:1475:25: D E F A U L T
pass
self.mD()
self.mE()
......@@ -2069,8 +2069,8 @@ class sdl92Lexer(Lexer):
_type = DECISION
_channel = DEFAULT_CHANNEL
# sdl92.g:1474:17: ( D E C I S I O N )
# sdl92.g:1474:25: D E C I S I O N
# sdl92.g:1476:17: ( D E C I S I O N )
# sdl92.g:1476:25: D E C I S I O N
pass
self.mD()
self.mE()
......@@ -2101,8 +2101,8 @@ class sdl92Lexer(Lexer):
_type = ENDDECISION
_channel = DEFAULT_CHANNEL
# sdl92.g:1475:17: ( E N D D E C I S I O N )
# sdl92.g:1475:25: E N D D E C I S I O N
# sdl92.g:1477:17: ( E N D D E C I S I O N )
# sdl92.g:1477:25: E N D D E C I S I O N
pass
self.mE()
self.mN()
......@@ -2136,8 +2136,8 @@ class sdl92Lexer(Lexer):
_type = EXPORT
_channel = DEFAULT_CHANNEL
# sdl92.g:1476:17: ( E X P O R T )
# sdl92.g:1476:25: E X P O R T
# sdl92.g:1478:17: ( E X P O R T )
# sdl92.g:1478:25: E X P O R T
pass
self.mE()
self.mX()
......@@ -2166,8 +2166,8 @@ class sdl92Lexer(Lexer):
_type = EXTERNAL
_channel = DEFAULT_CHANNEL
# sdl92.g:1477:17: ( E X T E R N A L )
# sdl92.g:1477:25: E X T E R N A L
# sdl92.g:1479:17: ( E X T E R N A L )
# sdl92.g:1479:25: E X T E R N A L
pass
self.mE()
self.mX()
......@@ -2198,8 +2198,8 @@ class sdl92Lexer(Lexer):
_type = REFERENCED
_channel = DEFAULT_CHANNEL
# sdl92.g:1478:17: ( R E F E R E N C E D )
# sdl92.g:1478:25: R E F E R E N C E D
# sdl92.g:1480:17: ( R E F E R E N C E D )