Exemple #1
0
 public static void Register(TokenType type)
 {
     try
     {
         TokenTypeList.Add(type);
     }
     catch
     {
         throw new FECTException(Phase.TOKENIZER,ExceptionStength.FATAL,"Cannot register token");
     }
 }
Exemple #2
0
 public static void RegisterDefault(TokenType type)
 {
     DefaultTokenType = type;
     TokenTypes.Register(type);
 }