src/Pure/Isar/args.ML
changeset 55951 c07d184aebe9
parent 55915 607948c90bf0
child 55954 a29aefc88c8d
equal deleted inserted replaced
55950:3bb5c7179234 55951:c07d184aebe9
    54   val typ: typ context_parser
    54   val typ: typ context_parser
    55   val term: term context_parser
    55   val term: term context_parser
    56   val term_pattern: term context_parser
    56   val term_pattern: term context_parser
    57   val term_abbrev: term context_parser
    57   val term_abbrev: term context_parser
    58   val prop: term context_parser
    58   val prop: term context_parser
    59   val type_name: bool -> string context_parser
    59   val type_name: {proper: bool, strict: bool} -> string context_parser
    60   val const: bool -> string context_parser
    60   val const: bool -> string context_parser
    61   val const_proper: bool -> string context_parser
    61   val const_proper: bool -> string context_parser
    62   val goal_spec: ((int -> tactic) -> tactic) context_parser
    62   val goal_spec: ((int -> tactic) -> tactic) context_parser
    63   val parse: Token.T list parser
    63   val parse: Token.T list parser
    64   val parse1: (string -> bool) -> Token.T list parser
    64   val parse1: (string -> bool) -> Token.T list parser
   206 val prop = Scan.peek (named_term o Syntax.read_prop o Context.proof_of);
   206 val prop = Scan.peek (named_term o Syntax.read_prop o Context.proof_of);
   207 
   207 
   208 
   208 
   209 (* type and constant names *)
   209 (* type and constant names *)
   210 
   210 
   211 fun type_name strict =
   211 fun type_name flags =
   212   Scan.peek (fn ctxt => named_typ (Proof_Context.read_type_name (Context.proof_of ctxt) strict))
   212   Scan.peek (fn ctxt => named_typ (Proof_Context.read_type_name (Context.proof_of ctxt) flags))
   213   >> (fn Type (c, _) => c | TFree (a, _) => a | _ => "");
   213   >> (fn Type (c, _) => c | TFree (a, _) => a | _ => "");
   214 
   214 
   215 fun const strict =
   215 fun const strict =
   216   Scan.peek (fn ctxt => named_term (Proof_Context.read_const (Context.proof_of ctxt) strict dummyT))
   216   Scan.peek (fn ctxt => named_term (Proof_Context.read_const (Context.proof_of ctxt) strict dummyT))
   217   >> (fn Const (c, _) => c | Free (x, _) => x | _ => "");
   217   >> (fn Const (c, _) => c | Free (x, _) => x | _ => "");