Esempio n. 1
0
 private LrAction(LrActionType action, ushort?precedence, LrState target, Production production)
 {
     Action     = action;
     Precedence = precedence;
     Target     = target;
     Production = production;
 }
Esempio 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));
 }
Esempio 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));
 }