Subversion Repositories programming

Rev

Rev 140 | Rev 143 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 140 Rev 142
Line 18... Line 18...
18
#
18
#
19
# - 2005-10-20
19
# - 2005-10-20
20
# - Added the check for <Python-2.3 compatibility.
20
# - Added the check for <Python-2.3 compatibility.
21
# - Commented the source more.
21
# - Commented the source more.
22
#
22
#
-
 
23
# - 2005-10-22
-
 
24
# - Removed an unnecessary call in input_autmaton()
-
 
25
#
23
 
26
 
24
################################################################################
27
################################################################################
25
# IMPORTANT NOTES
28
# IMPORTANT NOTES
26
################################################################################
29
################################################################################
27
# The DFA table format:
30
# The DFA table format:
Line 181... Line 184...
181
 
184
 
182
        self.__input_num_states()
185
        self.__input_num_states()
183
        self.__input_final_states()
186
        self.__input_final_states()
184
        self.__input_all_edges()
187
        self.__input_all_edges()
185
 
188
 
186
        # Make sure to visit all '^' states (to make printing easier)
-
 
187
        # TODO: See if you need this anymore (I don't think so)
-
 
188
        #for i in range(self.num_states):
-
 
189
        #    self.__E(i)
-
 
190
 
-
 
191
    def main_menu(self):
189
    def main_menu(self):
192
        """Display the main menu for this automaton"""
190
        """Display the main menu for this automaton"""
193
 
191
 
194
        done = False
192
        done = False
195
        automaton_entered = False
193
        automaton_entered = False