Subversion Repositories programming

Rev

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

Rev 125 Rev 127
Line 1... Line 1...
1
#!/usr/bin/python
1
#!/usr/bin/env python
2
#Copyright: Ira W. Snyder
2
# Copyright: Ira W. Snyder
3
# Start Date: 2005-10-08
3
# Start Date: 2005-10-08
4
# End Date: 
4
# End Date: 
5
# License: Public Domain
5
# License: Public Domain
6
#
6
#
7
# Changelog Follows:
7
# Changelog Follows:
Line 21... Line 21...
21
#       Fixed a few small errors in the error handling code.
21
#       Fixed a few small errors in the error handling code.
22
#
22
#
23
#   -- 2005-10-09 0006
23
#   -- 2005-10-09 0006
24
#       Made verbose mode into a toggle.
24
#       Made verbose mode into a toggle.
25
#
25
#
-
 
26
#   -- 2005-10-12 2000
-
 
27
#       Added True/False compatibility for versions of python that
-
 
28
#       are very old.
-
 
29
#
26
 
30
 
27
import sys, string
31
import sys, string
28
 
32
 
-
 
33
### Define True and False to compatible values if we are running on a version
-
 
34
### of python that doesn't support them. (The SPARC's at school)
-
 
35
try:
-
 
36
    True == 1
-
 
37
except:
-
 
38
    True = 1
-
 
39
    False = 0
-
 
40
 
29
class automaton:
41
class automaton:
30
    
42
    
31
    def __init__(self):
43
    def __init__(self):
32
        """Constructor for the automaton object"""
44
        """Constructor for the automaton object"""
33
        self.clear()
45
        self.clear()