| Index: tools/lexer_generator/automaton.py
|
| diff --git a/tools/lexer_generator/automaton.py b/tools/lexer_generator/automaton.py
|
| index 1ed580c4ea75105fa47f2824d4da39fc24f474fe..e0f1165dfb5429f2a87f56ff41497e0aeb2398e4 100644
|
| --- a/tools/lexer_generator/automaton.py
|
| +++ b/tools/lexer_generator/automaton.py
|
| @@ -137,8 +137,9 @@ class Automaton(object):
|
| if node.action():
|
| action = node.action()
|
| if action.type() == 'code':
|
| - # assert action.data()
|
| action_text = action.data()
|
| + elif action.type() == 'push_token':
|
| + action_text = "token(" + action.data() + ")"
|
| else:
|
| action_text = action.type()
|
| action_text = escape(action_text)
|
|
|