Exemplo n.º 1
0
 def perform_stack_action(self, stack: AutomatonStack,
                          configuration: Configuration):
     MemberState.check_stack(stack)
     stack.add_data(stack.get_current_content())
     MemberState.add_member_to_stack(stack)
     stack.remove_level()
     ExpressionEndState.add_function_to_stack(stack)
Exemplo n.º 2
0
 def __init__(self):
     StateDescription.__init__(self, MemberState(), _MemberDefaultTransition(), [
         _TransitionFromMemberToAccept(),
         _MemberCommaTransition(),
         _MemberWhitespaceTransition(),
         _TransitionFromMemberToCloseFunction()
     ])
Exemplo n.º 3
0
 def __init__(self):
     TransitionWithoutAction.__init__(self, Configuration(MemberState(), ')'),
                                      Configuration(ExpressionEndState(), ''))
Exemplo n.º 4
0
 def __init__(self):
     TransitionWithoutAction.__init__(self, Configuration(MemberState(), '$'),
                                      Configuration(AcceptState(), ''))
Exemplo n.º 5
0
 def __init__(self):
     DefaultTransition.__init__(self, MemberState())
Exemplo n.º 6
0
 def __init__(self):
     TransitionWithoutAction.__init__(self, Configuration(VariableState(), '.'),
                                      Configuration(MemberState(), ''))