diff options
| author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-08 01:47:37 +0100 |
|---|---|---|
| committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-11-08 01:47:37 +0100 |
| commit | 50054f938958ad8fe1351f0f245226e56ce4d586 (patch) | |
| tree | d12165b292a886beca9df8727f2fb7671b7ba328 | |
| parent | 7dbb2831b81ff0174054d30b1fc105b2113c272d (diff) | |
added missing transition table initialization for label state
| -rw-r--r-- | goto.cpp | 5 | ||||
| -rw-r--r-- | goto.h | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -160,6 +160,11 @@ public: static GotoTable table; +StateLabel::StateLabel() : State() +{ + transitions['\0'] = this; +} + State * StateLabel::custom(gchar chr) { @@ -7,6 +7,9 @@ #include "parser.h" class StateLabel : public State { +public: + StateLabel(); + private: State *custom(gchar chr); }; |
