Beispiel #1
0
 /// <summary>
 /// トップレベル文のコンパイル
 /// </summary>
 /// <param name="type_builder">Type Builer</param>
 /// <param name="top_stmt">トップレベル文</param>
 static void CompileTopStmt(TypeBuilder type_builder, MTopStmt top_stmt)
 {
     if (top_stmt is MTopFun)
     {
         CompileTopFun(type_builder, (MTopFun)top_stmt);
     }
     else
     {
         throw new NotImplementedException();
     }
 }
Beispiel #2
0
 /// <summary>
 /// トップレベル文の型推論
 /// </summary>
 /// <param name="top_stmt">トップレベル文</param>
 static void TypeinfTopStmt(MTopStmt top_stmt)
 {
     if (top_stmt is MTopFun)
     {
         TypeinfTopFun((MTopFun)top_stmt);
     }
     else
     {
         throw new NotImplementedException();
     }
 }