Example #1
0
 private static void ValidateMeta(Command c)
 {
     if (!c.HasMeta(Meta.PRELOAD) && !c.HasMeta(NOSTART))
     {
         ValidateKey(c, TYPE);
         ValidateKey(c, STAGE);
     }
 }
Example #2
0
 private static void ValidateKey(Command c, string key)
 {
     if (!c.HasMeta(key))
     {
         throw new ParseException
                   ("missing required meta-key '" + key + "', 'noStart' or 'preload'");
     }
 }