コード例 #1
0
 public static bool DoubleCheck(Morpheme morpheme, MorphemeAttribute attribute)
 {
     if (attribute.HasFlag(morpheme.attribute))
     {
         return(true);
     }
     Message(morpheme.attribute.ToString(), ConsoleColor.Red);
     Error(TypeError, morpheme.lex_line, morpheme.lex_ch, morpheme.ToString());
     return(false);
 }
コード例 #2
0
 public Morpheme(string n, MorphemeAttribute a, Stmt stmt, List <Morpheme> list, Type t)
 {
     type      = t;
     name      = n;
     attribute = a;
     this.stmt = stmt;
     up_list   = new List <Morpheme>(list ?? new List <Morpheme>())
     {
         this
     };
 }