mirror of
https://github.com/cwbaker/lalr.git
synced 2026-09-26 16:33:18 +03:00
18 lines
374 B
C++
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
|