lalr/TransitionType.hpp
2018-04-03 19:09:26 +12:00

18 lines
374 B
C++

#ifndef LALR_TRANSITIONTYPE_HPP_INCLUDED
#define LALR_TRANSITIONTYPE_HPP_INCLUDED
namespace lalr
{
/**
// The type of a transition in a parser's state machine.
*/
enum TransitionType
{
TRANSITION_SHIFT, ///< Shift a terminal symbol onto the parser's stack.
TRANSITION_REDUCE ///< Reduce one or more symbols on the parser's stack into a non terminal.
};
}
#endif