src/Pure/Tools/ml_process.scala
changeset 62912 745d31e63c21
parent 62902 3c0f53eae166
child 63986 c7a4b03727ae
equal deleted inserted replaced
62911:78e03d8bf1c4 62912:745d31e63c21
    37       }
    37       }
    38 
    38 
    39     val eval_init =
    39     val eval_init =
    40       if (heaps.isEmpty) {
    40       if (heaps.isEmpty) {
    41         List(
    41         List(
    42           "val ML_file = PolyML.use",
    42           """
       
    43           fun chapter (_: string) = ();
       
    44           fun section (_: string) = ();
       
    45           fun subsection (_: string) = ();
       
    46           fun subsubsection (_: string) = ();
       
    47           fun paragraph (_: string) = ();
       
    48           fun subparagraph (_: string) = ();
       
    49           val ML_file = PolyML.use;
       
    50           """,
    43           if (Isabelle_System.getenv("ML_SYSTEM") == "polyml-5.6") "structure FixedInt = IntInf"
    51           if (Isabelle_System.getenv("ML_SYSTEM") == "polyml-5.6") "structure FixedInt = IntInf"
    44           else "",
    52           else "",
    45           if (Platform.is_windows)
    53           if (Platform.is_windows)
    46             "fun exit 0 = OS.Process.exit OS.Process.success" +
    54             "fun exit 0 = OS.Process.exit OS.Process.success" +
    47             " | exit 1 = OS.Process.exit OS.Process.failure" +
    55             " | exit 1 = OS.Process.exit OS.Process.failure" +