| Index: tools/lexer_generator/nfa.py
|
| diff --git a/tools/lexer_generator/nfa.py b/tools/lexer_generator/nfa.py
|
| index fd791864b8a379d6074a70b8663d65343fce550b..2367630b76b711cea0725b5df5e1083e276f3ca8 100644
|
| --- a/tools/lexer_generator/nfa.py
|
| +++ b/tools/lexer_generator/nfa.py
|
| @@ -35,7 +35,7 @@ class NfaState(AutomatonState):
|
| self.__transitions = {}
|
| self.__unclosed = set()
|
| self.__epsilon_closure = None
|
| - self.__action = None
|
| + self.__action = Action.empty_action()
|
|
|
| def transitions_to_multiple_states(self):
|
| return True
|
| @@ -55,6 +55,7 @@ class NfaState(AutomatonState):
|
| def set_action(self, action):
|
| assert not self.is_closed()
|
| assert not self.__action
|
| + assert isinstance(action, Action)
|
| self.__action = action
|
|
|
| def transitions(self):
|
|
|