You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
342 B
25 lines
342 B
import sys
|
|
sys.stderr = sys.stdout
|
|
|
|
from TransitionMaps import TransitionMap
|
|
|
|
m = TransitionMap()
|
|
print m
|
|
|
|
def add(c, s):
|
|
print
|
|
print "adding", repr(c), "-->", repr(s)
|
|
m.add_transition(c, s)
|
|
print m
|
|
print "keys:", m.keys()
|
|
|
|
add('a','alpha')
|
|
add('e', 'eta')
|
|
add('f', 'foo')
|
|
add('i', 'iota')
|
|
add('i', 'imp')
|
|
add('eol', 'elephant')
|
|
|
|
|
|
|