Ejemplo n.º 1
0
 private LrAction(LrActionType action, ushort?precedence, LrState target, Production production)
 {
     Action     = action;
     Precedence = precedence;
     Target     = target;
     Production = production;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a goto to the specified state.
 /// </summary>
 public static LrAction Goto(LrState state, ushort?precedence)
 {
     return(new LrAction(LrActionType.Goto, precedence, state, null));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a shift to the specified state.
 /// </summary>
 public static LrAction Shift(LrState state, ushort?precedence)
 {
     return(new LrAction(LrActionType.Shift, precedence, state, null));
 }