src/Pure/Isar/outer_syntax.ML
changeset 18064 f5727fa16c77
parent 17975 a77862a93f02
child 18326 2f57579e618f
equal deleted inserted replaced
18063:c4bffc47c11b 18064:f5727fa16c77
     7 
     7 
     8 signature BASIC_OUTER_SYNTAX =
     8 signature BASIC_OUTER_SYNTAX =
     9 sig
     9 sig
    10   structure Isar:
    10   structure Isar:
    11     sig
    11     sig
       
    12       val state: unit -> Toplevel.state
       
    13       val exn: unit -> (exn * string) option
    12       val main: unit -> unit
    14       val main: unit -> unit
    13       val loop: unit -> unit
    15       val loop: unit -> unit
    14       val sync_main: unit -> unit
    16       val sync_main: unit -> unit
    15       val sync_loop: unit -> unit
    17       val sync_loop: unit -> unit
    16     end;
    18     end;
   317   writeln (Session.welcome ());
   319   writeln (Session.welcome ());
   318   gen_loop term no_pos);
   320   gen_loop term no_pos);
   319 
   321 
   320 structure Isar =
   322 structure Isar =
   321 struct
   323 struct
       
   324   val state = Toplevel.get_state;
       
   325   val exn = Toplevel.exn;
   322   fun main () = gen_main false false;
   326   fun main () = gen_main false false;
   323   fun loop () = gen_loop false false;
   327   fun loop () = gen_loop false false;
   324   fun sync_main () = gen_main true true;
   328   fun sync_main () = gen_main true true;
   325   fun sync_loop () = gen_loop true true;
   329   fun sync_loop () = gen_loop true true;
   326 end;
   330 end;
   338 ThyLoad.load_thy_fn := OuterSyntax.load_thy;
   342 ThyLoad.load_thy_fn := OuterSyntax.load_thy;
   339 structure ThyLoad: THY_LOAD = ThyLoad;
   343 structure ThyLoad: THY_LOAD = ThyLoad;
   340 
   344 
   341 structure BasicOuterSyntax: BASIC_OUTER_SYNTAX = OuterSyntax;
   345 structure BasicOuterSyntax: BASIC_OUTER_SYNTAX = OuterSyntax;
   342 open BasicOuterSyntax;
   346 open BasicOuterSyntax;
   343 open Isar;