src/Pure/Isar/args.ML
changeset 42360 da8817d01e7c
parent 40291 012ed4426fda
child 42464 ae16b8abf1a8
equal deleted inserted replaced
42359:6ca5407863ed 42360:da8817d01e7c
   182   internal_attribute || named >> evaluate Token.Attribute (att o Token.content_of);
   182   internal_attribute || named >> evaluate Token.Attribute (att o Token.content_of);
   183 
   183 
   184 
   184 
   185 (* terms and types *)
   185 (* terms and types *)
   186 
   186 
   187 val typ_abbrev = Scan.peek (named_typ o ProofContext.read_typ_abbrev o Context.proof_of);
   187 val typ_abbrev = Scan.peek (named_typ o Proof_Context.read_typ_abbrev o Context.proof_of);
   188 val typ = Scan.peek (named_typ o Syntax.read_typ o Context.proof_of);
   188 val typ = Scan.peek (named_typ o Syntax.read_typ o Context.proof_of);
   189 val term = Scan.peek (named_term o Syntax.read_term o Context.proof_of);
   189 val term = Scan.peek (named_term o Syntax.read_term o Context.proof_of);
   190 val term_abbrev = Scan.peek (named_term o ProofContext.read_term_abbrev o Context.proof_of);
   190 val term_abbrev = Scan.peek (named_term o Proof_Context.read_term_abbrev o Context.proof_of);
   191 val prop = Scan.peek (named_term o Syntax.read_prop o Context.proof_of);
   191 val prop = Scan.peek (named_term o Syntax.read_prop o Context.proof_of);
   192 
   192 
   193 
   193 
   194 (* type and constant names *)
   194 (* type and constant names *)
   195 
   195 
   196 fun type_name strict =
   196 fun type_name strict =
   197   Scan.peek (fn ctxt => named_typ (ProofContext.read_type_name (Context.proof_of ctxt) strict))
   197   Scan.peek (fn ctxt => named_typ (Proof_Context.read_type_name (Context.proof_of ctxt) strict))
   198   >> (fn Type (c, _) => c | TFree (a, _) => a | _ => "");
   198   >> (fn Type (c, _) => c | TFree (a, _) => a | _ => "");
   199 
   199 
   200 fun const strict =
   200 fun const strict =
   201   Scan.peek (fn ctxt => named_term (ProofContext.read_const (Context.proof_of ctxt) strict dummyT))
   201   Scan.peek (fn ctxt => named_term (Proof_Context.read_const (Context.proof_of ctxt) strict dummyT))
   202   >> (fn Const (c, _) => c | Free (x, _) => x | _ => "");
   202   >> (fn Const (c, _) => c | Free (x, _) => x | _ => "");
   203 
   203 
   204 fun const_proper strict =
   204 fun const_proper strict =
   205   Scan.peek (fn ctxt => named_term (ProofContext.read_const_proper (Context.proof_of ctxt) strict))
   205   Scan.peek (fn ctxt => named_term (Proof_Context.read_const_proper (Context.proof_of ctxt) strict))
   206   >> (fn Const (c, _) => c | _ => "");
   206   >> (fn Const (c, _) => c | _ => "");
   207 
   207 
   208 
   208 
   209 (* improper method arguments *)
   209 (* improper method arguments *)
   210 
   210