def get_output_configuration( self, input_configuration: Configuration) -> Configuration: if not input_configuration.character.isalpha( ) and input_configuration.character != '_': raise ParsingError( f'Non-alpha character "{input_configuration.character}" detected.' ) return Configuration(VariableState(), input_configuration.character)
def __init__(self): StateDescription.__init__(self, VariableState(), _VariableDefaultTransition(), [ _TransitionFromVariableToAccept(), _VariableCommaTransition(), _TransitionFromVariableToMember(), _TransitionFromVariableToOpenFunction(), _VariableWhitespaceTransition(), _TransitionFromVariableToCloseFunction() ])
def __init__(self): TransitionWithoutAction.__init__(self, Configuration(VariableState(), ')'), Configuration(ExpressionEndState(), ''))
def __init__(self): TransitionWithoutAction.__init__(self, Configuration(VariableState(), '('), Configuration(OptionalExpressionState(), ''))
def __init__(self): TransitionWithoutAction.__init__(self, Configuration(VariableState(), '.'), Configuration(MemberState(), ''))
def __init__(self): TransitionWithoutAction.__init__(self, Configuration(VariableState(), '$'), Configuration(AcceptState(), ''))
def __init__(self): DefaultTransition.__init__(self, VariableState())