diff options
author | Casey Dahlin <cdahlin@redhat.com> | 2009-01-16 22:48:40 -0500 |
---|---|---|
committer | Casey Dahlin <cdahlin@redhat.com> | 2009-01-17 00:09:11 -0500 |
commit | c2ccb99111ddfb41cb72065b03e1ceab799abbe1 (patch) | |
tree | e7d96e09b5167c5762467a533afba3e71809962a | |
parent | a9e80e7d9496d8dcd410db507f390c0bc5bbb2e0 (diff) | |
download | upstate-c2ccb99111ddfb41cb72065b03e1ceab799abbe1.tar.gz upstate-c2ccb99111ddfb41cb72065b03e1ceab799abbe1.tar.xz upstate-c2ccb99111ddfb41cb72065b03e1ceab799abbe1.zip |
Add epsilon events
-rw-r--r-- | statemachine.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/statemachine.py b/statemachine.py index 8be3db7..133fd17 100644 --- a/statemachine.py +++ b/statemachine.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- __docformat__ = 'restructuredtext' from category import Category @@ -44,10 +45,12 @@ class StateMachine: found.append(res) if found == None: self.add_hold(cat, wanted) + sm.emit(Category("ε")) return True to_add = self.cat_cross(found) for x in to_add: self.add_hold(x, wanted) + sm.emit(Category("ε")) return True def cat_cross(self, found): |