void move (by_state& that);
/// The (internal) type number (corresponding to \a state).
- /// -1 when empty.
+ /// "empty" when empty.
symbol_number_type type_get () const;
+ enum { empty = 0 };
+
/// The state.
state_type state;
};
// by_state.
inline
]b4_parser_class_name[::by_state::by_state ()
- : state (-1)
+ : state (empty)
{}
inline
]b4_parser_class_name[::by_state::move (by_state& that)
{
state = that.state;
- that.state = -1;
+ that.state = empty;
}
inline
]b4_parser_class_name[::symbol_number_type
]b4_parser_class_name[::by_state::type_get () const
{
- return state == -1 ? -1 : yystos_[state];
+ return state == empty ? 0 : yystos_[state];
}
inline
[value], [move], [that.value])],
[[value = that.value;]])[
// that is emptied.
- that.type = -1;
+ that.type = empty;
}
inline