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