src/Pure/Isar/spec_parse.ML
changeset 25094 ba43514068fd
parent 24869 bad2b2be1f24
child 25999 f8bcd311d501
equal deleted inserted replaced
25093:41ec22a00c41 25094:ba43514068fd
    21   val xthms1: token list -> (thmref * Attrib.src list) list * token list
    21   val xthms1: token list -> (thmref * Attrib.src list) list * token list
    22   val name_facts: token list ->
    22   val name_facts: token list ->
    23     ((bstring * Attrib.src list) * (thmref * Attrib.src list) list) list * token list
    23     ((bstring * Attrib.src list) * (thmref * Attrib.src list) list) list * token list
    24   val locale_mixfix: token list -> mixfix * token list
    24   val locale_mixfix: token list -> mixfix * token list
    25   val locale_fixes: token list -> (string * string option * mixfix) list * token list
    25   val locale_fixes: token list -> (string * string option * mixfix) list * token list
    26   val locale_insts: token list -> (string option list * string list) * token list
    26   val locale_insts: token list ->
       
    27     (string option list * ((bstring * Attrib.src list) * string) list) * token list
    27   val class_expr: token list -> string list * token list
    28   val class_expr: token list -> string list * token list
    28   val locale_expr: token list -> Locale.expr * token list
    29   val locale_expr: token list -> Locale.expr * token list
    29   val locale_keyword: token list -> string * token list
    30   val locale_keyword: token list -> string * token list
    30   val locale_element: token list -> Element.context Locale.element * token list
    31   val locale_element: token list -> Element.context Locale.element * token list
    31   val context_element: token list -> Element.context * token list
    32   val context_element: token list -> Element.context * token list
    86     >> (single o P.triple1) ||
    87     >> (single o P.triple1) ||
    87   P.params >> map Syntax.no_syn) >> flat;
    88   P.params >> map Syntax.no_syn) >> flat;
    88 
    89 
    89 val locale_insts =
    90 val locale_insts =
    90   Scan.optional (P.$$$ "[" |-- P.!!! (Scan.repeat1 (P.maybe P.term) --| P.$$$ "]")) []
    91   Scan.optional (P.$$$ "[" |-- P.!!! (Scan.repeat1 (P.maybe P.term) --| P.$$$ "]")) []
    91   -- Scan.optional (P.$$$ "where" |-- P.and_list1 P.term) [];
    92   -- Scan.optional (P.$$$ "where" |-- P.and_list1 (opt_thm_name ":" -- P.prop)) [];
    92 
    93 
    93 local
    94 local
    94 
    95 
    95 val loc_keyword = P.$$$ "fixes" || P.$$$ "constrains" || P.$$$ "assumes" ||
    96 val loc_keyword = P.$$$ "fixes" || P.$$$ "constrains" || P.$$$ "assumes" ||
    96    P.$$$ "defines" || P.$$$ "notes" || P.$$$ "includes";
    97    P.$$$ "defines" || P.$$$ "notes" || P.$$$ "includes";