Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public static Option Parse(SyntaxItem item)
 {
     return(SemanticParser.DoParser <Option>(item));
 }
Esempio n. 3
0
 public static ModifierGroup Parse(SyntaxItem item)
 {
     return(SemanticParser.DoParser <ModifierGroup>(item));
 }