public CustomParserAction(LanguageData language, ParserState state, ExecuteActionMethod executeRef) { Language = language; State = state; ExecuteRef = executeRef; Conflicts.UnionWith(state.BuilderData.Conflicts); // Create default shift and reduce actions foreach (var shiftItem in state.BuilderData.ShiftItems) ShiftActions.Add(new ShiftParserAction(shiftItem)); foreach (var item in state.BuilderData.ReduceItems) ReduceActions.Add(ReduceParserAction.Create(item.Core.Production)); }
public CustomParserAction(LanguageData language, ParserState state, ExecuteActionMethod executeRef) { Language = language; State = state; ExecuteRef = executeRef; Conflicts.UnionWith(state.BuilderData.Conflicts); // Create default shift and reduce actions foreach (var shiftItem in state.BuilderData.ShiftItems) { ShiftActions.Add(new ShiftParserAction(shiftItem)); } foreach (var item in state.BuilderData.ReduceItems) { ReduceActions.Add(ReduceParserAction.Create(item.Core.Production)); } }
public CustomActionHint(ExecuteActionMethod executeMethod, PreviewActionMethod previewMethod = null) { _executeMethod = executeMethod; _previewMethod = previewMethod; }
protected CustomActionHint CustomActionHere(ExecuteActionMethod executeMethod, PreviewActionMethod previewMethod = null) { return new CustomActionHint(executeMethod, previewMethod); }
protected CustomActionHint CustomActionHere(ExecuteActionMethod executeMethod, PreviewActionMethod previewMethod = null) { return(new CustomActionHint(executeMethod, previewMethod)); }
public CustomActionHint(ExecuteActionMethod executeMethod) : this(executeMethod, null) { }
internal static CustomActionHint CustomActionHere(ExecuteActionMethod executeMethod, PreviewActionMethod previewMethod = null) { return(new CustomActionHint(executeMethod, previewMethod)); }