File tree Expand file tree Collapse file tree
evaluation_function/schemas Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,17 +69,17 @@ class Config:
6969 }
7070
7171 @classmethod
72- def toFSA (cls , data : dict ) -> FSA :
72+ def toFSA (cls ) -> FSA :
7373 """
7474 Convert frontend FSA payload (with transitions as "from|symbol|to")
7575 into the FSABackend model with proper Transition objects.
7676 """
77- states = data . get ( " states" , [])
78- alphabet = data . get ( " alphabet" , [])
79- initial_state = data . get ( " initial_state" , "q0" )
80- accept_states = data . get ( " accept_states" , [])
77+ states = cls . states
78+ alphabet = cls . alphabet
79+ initial_state = cls . initial_state
80+ accept_states = cls . accept_states
8181
82- flat_transitions = data . get ( " transitions" , [])
82+ flat_transitions = cls . transitions
8383 transitions : List [Transition ] = []
8484 for t in flat_transitions :
8585 try :
You can’t perform that action at this time.
0 commit comments