src/Pure/ProofGeneral/pgip_standalone.ML
author wenzelm
Mon, 07 May 2007 00:49:59 +0200
changeset 22846 fb79144af9a3
parent 22589 18735b5fef26
child 23620 55ef4d0bc250
permissions -rw-r--r--
simplified DataFun interfaces;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21997
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
     1
(*  Title:      Pure/ProofGeneral/pgip_standalone.ML
21974
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     2
    ID:         $Id$
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     3
    Author:     David Aspinall
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     4
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     5
   This file allows a standalone build of the PGIP abstraction module.
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     6
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     7
   This should be useful for building other tools, or as an aid to porting.
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     8
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
     9
   A lot of Isabelle library code is pulled in, but only a few
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    10
   functions are actually used, and the libraries indicated "used
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    11
   directly" below could be replaced with other implementations.
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    12
*)
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    13
21997
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    14
(* The required parts of Isabelle libraries *)
21974
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    15
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    16
use "General/basics.ML";
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    17
use "library.ML";
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    18
use "General/position.ML";
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    19
use "General/path.ML";     (* used directly *)
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    20
use "General/table.ML";
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    21
use "General/alist.ML";
22589
18735b5fef26 added print_mode;
wenzelm
parents: 22010
diff changeset
    22
18735b5fef26 added print_mode;
wenzelm
parents: 22010
diff changeset
    23
val print_mode = ref ([]: string list);
18735b5fef26 added print_mode;
wenzelm
parents: 22010
diff changeset
    24
fun print_mode_active s = member (op =) (! print_mode) s;
18735b5fef26 added print_mode;
wenzelm
parents: 22010
diff changeset
    25
21974
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    26
use "General/output.ML";
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    27
use "General/scan.ML";
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    28
use "General/source.ML";
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    29
use "General/file.ML";     (* used directly *)
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    30
use "General/buffer.ML";
21997
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    31
use "General/symbol.ML";
21974
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    32
use "General/xml.ML";      (* used directly *)
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    33
use "General/url.ML";      (* used directly *)
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    34
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    35
21997
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    36
(* Our code *)
21974
c4e4d34fbc60 Add standalone file to help porters
aspinall
parents:
diff changeset
    37
21997
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    38
use "ProofGeneral/pgip_types.ML";
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    39
use "ProofGeneral/pgip_markup.ML";
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    40
use "ProofGeneral/pgip_input.ML";
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    41
use "ProofGeneral/pgip_output.ML";
6e3a0b25cda5 run as RAW session;
wenzelm
parents: 21974
diff changeset
    42
use "ProofGeneral/pgip.ML";