Fixing variable name.
@@ -78,8 +78,8 @@ def _dump_state(state):
s['state_id'] = state.state_id
s['symbol'] = state.symbol.fqn
action_items = list(state.actions.items())
- s['actions'] = [[terminal.fqn, _dump_actions(action)]
- for terminal, action in action_items]
+ s['actions'] = [[terminal.fqn, _dump_actions(actions)]
+ for terminal, actions in action_items]
goto_items = list(state.gotos.items())
s['gotos'] = [[nonterminal.fqn, st.state_id]
for nonterminal, st in goto_items]
