src/Pure/ML-Systems/ml_system.ML
author blanchet
Mon, 22 Aug 2011 15:02:45 +0200
changeset 44403 15160cdc4688
parent 43948 8f5add916a99
child 48416 5787e1c911d0
permissions -rw-r--r--
precisely distinguish between universal and existential quantifiers, instead of assuming the worst (universal), for monotonicity analysis

(*  Title:      Pure/ML-Systems/ml_system.ML
    Author:     Makarius

ML system and platform information.
*)

signature ML_SYSTEM =
sig
  val name: string
  val is_polyml: bool
  val is_smlnj: bool
  val platform: string
  val platform_is_cygwin: bool
end;

structure ML_System: ML_SYSTEM =
struct

val SOME name = OS.Process.getEnv "ML_SYSTEM";
val is_polyml = String.isPrefix "polyml" name;
val is_smlnj = String.isPrefix "smlnj" name;

val SOME platform = OS.Process.getEnv "ML_PLATFORM";
val platform_is_cygwin = String.isSuffix "cygwin" platform;

end;