示例#1
0
 def __init__(self):
     StateDescription.__init__(
         self, MessageState(), SimpleForwardDefaultTransition(MessageState()), [
             TransitionWithoutAction(Configuration(MessageState(), '\\'),
                                     Configuration(EscapeState(MessageState()), '')),
             _TransitionFromMessageToCode(),
             _TransitionFromMessageToAccept()
         ])
示例#2
0
 def get_output_configuration(
         self, input_configuration: Configuration) -> Configuration:
     output_state = EscapeState(input_configuration.state)
     return Configuration(output_state, '\\')
示例#3
0
 def __init__(self):
     StateDescription.__init__(self, EscapeState(None),
                               _EscapeDefaultTransition(), [])
示例#4
0
 def __init__(self):
     DefaultTransition.__init__(self, EscapeState(None))