src/Pure/Isar/keyword.ML
changeset 53571 e58ca0311c0f
parent 53371 47b23c582127
child 54523 11087efad95e
equal deleted inserted replaced
53547:e12f16366957 53571:e58ca0311c0f
    21   val thy_load: T
    21   val thy_load: T
    22   val thy_load_files: string list -> T
    22   val thy_load_files: string list -> T
    23   val thy_script: T
    23   val thy_script: T
    24   val thy_goal: T
    24   val thy_goal: T
    25   val qed: T
    25   val qed: T
       
    26   val qed_script: T
    26   val qed_block: T
    27   val qed_block: T
    27   val qed_global: T
    28   val qed_global: T
    28   val prf_heading2: T
    29   val prf_heading2: T
    29   val prf_heading3: T
    30   val prf_heading3: T
    30   val prf_heading4: T
    31   val prf_heading4: T
   101 val thy_load = kind "thy_load";
   102 val thy_load = kind "thy_load";
   102 fun thy_load_files files = Keyword {kind = "thy_load", files = files, tags = []};
   103 fun thy_load_files files = Keyword {kind = "thy_load", files = files, tags = []};
   103 val thy_script = kind "thy_script";
   104 val thy_script = kind "thy_script";
   104 val thy_goal = kind "thy_goal";
   105 val thy_goal = kind "thy_goal";
   105 val qed = kind "qed";
   106 val qed = kind "qed";
       
   107 val qed_script = kind "qed_script";
   106 val qed_block = kind "qed_block";
   108 val qed_block = kind "qed_block";
   107 val qed_global = kind "qed_global";
   109 val qed_global = kind "qed_global";
   108 val prf_heading2 = kind "prf_heading2";
   110 val prf_heading2 = kind "prf_heading2";
   109 val prf_heading3 = kind "prf_heading3";
   111 val prf_heading3 = kind "prf_heading3";
   110 val prf_heading4 = kind "prf_heading4";
   112 val prf_heading4 = kind "prf_heading4";
   119 val prf_asm_goal_script = kind "prf_asm_goal_script";
   121 val prf_asm_goal_script = kind "prf_asm_goal_script";
   120 val prf_script = kind "prf_script";
   122 val prf_script = kind "prf_script";
   121 
   123 
   122 val kinds =
   124 val kinds =
   123   [control, diag, thy_begin, thy_end, thy_heading1, thy_heading2, thy_heading3, thy_heading4,
   125   [control, diag, thy_begin, thy_end, thy_heading1, thy_heading2, thy_heading3, thy_heading4,
   124     thy_load, thy_decl, thy_script, thy_goal, qed, qed_block, qed_global,
   126     thy_load, thy_decl, thy_script, thy_goal, qed, qed_script, qed_block, qed_global,
   125     prf_heading2, prf_heading3, prf_heading4, prf_goal, prf_block, prf_open,
   127     prf_heading2, prf_heading3, prf_heading4, prf_goal, prf_block, prf_open,
   126     prf_close, prf_chain, prf_decl, prf_asm, prf_asm_goal, prf_asm_goal_script, prf_script];
   128     prf_close, prf_chain, prf_decl, prf_asm, prf_asm_goal, prf_asm_goal_script, prf_script];
   127 
   129 
   128 
   130 
   129 (* tags *)
   131 (* tags *)
   240 val is_theory = command_category
   242 val is_theory = command_category
   241   [thy_begin, thy_end, thy_heading1, thy_heading2, thy_heading3, thy_heading4,
   243   [thy_begin, thy_end, thy_heading1, thy_heading2, thy_heading3, thy_heading4,
   242     thy_load, thy_decl, thy_script, thy_goal];
   244     thy_load, thy_decl, thy_script, thy_goal];
   243 
   245 
   244 val is_proof = command_category
   246 val is_proof = command_category
   245   [qed, qed_block, qed_global, prf_heading2, prf_heading3, prf_heading4,
   247   [qed, qed_script, qed_block, qed_global, prf_heading2, prf_heading3, prf_heading4,
   246     prf_goal, prf_block, prf_open, prf_close, prf_chain, prf_decl,
   248     prf_goal, prf_block, prf_open, prf_close, prf_chain, prf_decl,
   247     prf_asm, prf_asm_goal, prf_asm_goal_script, prf_script];
   249     prf_asm, prf_asm_goal, prf_asm_goal_script, prf_script];
   248 
   250 
   249 val is_proof_body = command_category
   251 val is_proof_body = command_category
   250   [diag, prf_heading2, prf_heading3, prf_heading4, prf_block, prf_open, prf_close, prf_chain,
   252   [diag, prf_heading2, prf_heading3, prf_heading4, prf_block, prf_open, prf_close, prf_chain,
   251     prf_decl, prf_asm, prf_asm_goal, prf_asm_goal_script, prf_script];
   253     prf_decl, prf_asm, prf_asm_goal, prf_asm_goal_script, prf_script];
   252 
   254 
   253 val is_theory_goal = command_category [thy_goal];
   255 val is_theory_goal = command_category [thy_goal];
   254 val is_proof_goal = command_category [prf_goal, prf_asm_goal, prf_asm_goal_script];
   256 val is_proof_goal = command_category [prf_goal, prf_asm_goal, prf_asm_goal_script];
   255 val is_qed = command_category [qed, qed_block];
   257 val is_qed = command_category [qed, qed_script, qed_block];
   256 val is_qed_global = command_category [qed_global];
   258 val is_qed_global = command_category [qed_global];
   257 
   259 
   258 end;
   260 end;
   259 
   261