IPDL: add colons back to state declarations

This commit is contained in:
Chris Jones 2009-07-13 12:10:02 -05:00
Родитель fc924865a3
Коммит 88634d747a
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -98,7 +98,7 @@ class Parser:
try:
ast = self.parser.parse(input=input, lexer=self.lexer,
debug=self.debug)
except Exception, p:
except ParseError, p:
print >>errout, p
return None
@ -384,8 +384,8 @@ def p_TransitionStmtsNonEmpty(p):
p[0] = [ p[1] ]
def p_TransitionStmt(p):
"""TransitionStmt : STATE State Transitions"""
p[0] = TransitionStmt(locFromTok(p, 1), p[2], p[3])
"""TransitionStmt : STATE State ':' Transitions"""
p[0] = TransitionStmt(locFromTok(p, 1), p[2], p[4])
def p_Transitions(p):
"""Transitions : Transitions Transition