public static Date Parse(SyntaxItem item) { if (item.values.Count == 1 && item.values[0] is StringValue) { var sValue = item.values[0] as StringValue; if (sValue.ToString() != "every_day") { throw new Exception($"date with single value expect be 'every_day', but curr is {sValue.ToString()}"); } return(new Date()); } return(SemanticParser.DoParser <Date>(item)); }
public static Option Parse(SyntaxItem item) { return(SemanticParser.DoParser <Option>(item)); }
public static ModifierGroup Parse(SyntaxItem item) { return(SemanticParser.DoParser <ModifierGroup>(item)); }