src/Pure/Syntax/mixfix.ML
author paulson
Fri, 16 Feb 1996 14:17:34 +0100
changeset 1507 f600215b6ea7
parent 1181 c4e90fb7f8fa
child 1952 4acc84e5831f
permissions -rw-r--r--
Elimination of fully-functorial style. Type tactic changed to a type abbrevation (from a datatype). Constructor tactic and function apply deleted.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
     1
(*  Title:      Pure/Syntax/mixfix.ML
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
     2
    ID:         $Id$
551
4c139c37dbaf minor cleanings;
wenzelm
parents: 472
diff changeset
     3
    Author:     Tobias Nipkow and Markus Wenzel, TU Muenchen
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
     4
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
     5
Mixfix declarations, infixes, binders. Part of the Pure syntax.
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
     6
*)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
     7
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
     8
signature MIXFIX0 =
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
     9
  sig
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    10
  datatype mixfix =
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    11
    NoSyn |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    12
    Mixfix of string * int list * int |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    13
    Delimfix of string |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    14
    Infixl of int |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    15
    Infixr of int |
865
b38c67991122 added optional precedence for body of binder;
clasohm
parents: 842
diff changeset
    16
    Binder of string * int * int
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    17
  val max_pri: int
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    18
  end;
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    19
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    20
signature MIXFIX1 =
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    21
  sig
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    22
  include MIXFIX0
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    23
  val type_name: string -> mixfix -> string
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    24
  val const_name: string -> mixfix -> string
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    25
  val pure_types: (string * int * mixfix) list
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    26
  val pure_syntax: (string * string * mixfix) list
1181
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
    27
  val pure_appl_syntax: (string * string * mixfix) list
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
    28
  val pure_applC_syntax: (string * string * mixfix) list
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    29
  end;
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    30
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    31
signature MIXFIX =
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    32
  sig
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    33
  include MIXFIX1
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    34
  val syn_ext_types: string list -> (string * int * mixfix) list -> SynExt.syn_ext
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    35
  val syn_ext_consts: string list -> (string * typ * mixfix) list -> SynExt.syn_ext
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    36
  end;
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    37
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    38
structure Mixfix : MIXFIX =
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    39
struct
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    40
1507
f600215b6ea7 Elimination of fully-functorial style.
paulson
parents: 1181
diff changeset
    41
open Lexicon SynExt Ast SynTrans;
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    42
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    43
(** mixfix declarations **)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    44
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    45
datatype mixfix =
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    46
  NoSyn |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    47
  Mixfix of string * int list * int |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    48
  Delimfix of string |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    49
  Infixl of int |
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    50
  Infixr of int |
887
6a054d83acb2 *** empty log message ***
wenzelm
parents: 865
diff changeset
    51
  Binder of string * int * int;
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    52
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    53
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    54
(* type / const names *)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    55
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    56
fun strip ("'" :: c :: cs) = c :: strip cs
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    57
  | strip ["'"] = []
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    58
  | strip (c :: cs) = c :: strip cs
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    59
  | strip [] = [];
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    60
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    61
val strip_esc = implode o strip o explode;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    62
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    63
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    64
fun type_name t (Infixl _) = strip_esc t
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    65
  | type_name t (Infixr _) = strip_esc t
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    66
  | type_name t _ = t;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    67
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    68
fun infix_name c = "op " ^ strip_esc c;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    69
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    70
fun const_name c (Infixl _) = infix_name c
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    71
  | const_name c (Infixr _) = infix_name c
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    72
  | const_name c _ = c;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    73
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    74
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    75
(* syn_ext_types *)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    76
764
b60e77395d1a changed Pure's grammar and the way types are converted to nonterminals
clasohm
parents: 639
diff changeset
    77
fun syn_ext_types logtypes type_decls =
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    78
  let
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    79
    fun name_of (t, _, mx) = type_name t mx;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    80
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    81
    fun mk_infix t p1 p2 p3 =
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    82
      Mfix ("(_ " ^ t ^ "/ _)", [typeT, typeT] ---> typeT,
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    83
        strip_esc t, [p1, p2], p3);
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    84
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    85
    fun mfix_of (_, _, NoSyn) = None
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    86
      | mfix_of (t, 2, Infixl p) = Some (mk_infix t p (p + 1) p)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    87
      | mfix_of (t, 2, Infixr p) = Some (mk_infix t (p + 1) p p)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    88
      | mfix_of decl = error ("Bad mixfix declaration for type " ^
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    89
          quote (name_of decl));
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    90
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    91
    val mfix = mapfilter mfix_of type_decls;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    92
    val xconsts = map name_of type_decls;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    93
  in
764
b60e77395d1a changed Pure's grammar and the way types are converted to nonterminals
clasohm
parents: 639
diff changeset
    94
    syn_ext logtypes mfix xconsts ([], [], [], []) ([], [])
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    95
  end;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    96
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    97
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    98
(* syn_ext_consts *)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
    99
764
b60e77395d1a changed Pure's grammar and the way types are converted to nonterminals
clasohm
parents: 639
diff changeset
   100
fun syn_ext_consts logtypes const_decls =
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   101
  let
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   102
    fun name_of (c, _, mx) = const_name c mx;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   103
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   104
    fun mk_infix sy ty c p1 p2 p3 =
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   105
      [Mfix ("(_ " ^ sy ^ "/ _)", ty, c, [p1, p2], p3),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   106
       Mfix ("op " ^ sy, ty, c, [], max_pri)];
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   107
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   108
    fun binder_typ _ (Type ("fun", [Type ("fun", [_, ty2]), ty3])) =
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   109
          [Type ("idts", []), ty2] ---> ty3
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   110
      | binder_typ c _ = error ("Bad type of binder " ^ quote c);
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   111
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   112
    fun mfix_of (_, _, NoSyn) = []
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   113
      | mfix_of (c, ty, Mixfix (sy, ps, p)) = [Mfix (sy, ty, c, ps, p)]
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   114
      | mfix_of (c, ty, Delimfix sy) = [Mfix (sy, ty, c, [], max_pri)]
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   115
      | mfix_of (sy, ty, Infixl p) = mk_infix sy ty (infix_name sy) p (p + 1) p
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   116
      | mfix_of (sy, ty, Infixr p) = mk_infix sy ty (infix_name sy) (p + 1) p p
887
6a054d83acb2 *** empty log message ***
wenzelm
parents: 865
diff changeset
   117
      | mfix_of (c, ty, Binder (sy, p, q)) =
6a054d83acb2 *** empty log message ***
wenzelm
parents: 865
diff changeset
   118
          [Mfix ("(3" ^ sy ^ "_./ _)", binder_typ c ty, sy, [0, p], q)];
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   119
865
b38c67991122 added optional precedence for body of binder;
clasohm
parents: 842
diff changeset
   120
    fun binder (c, _, Binder (sy, _, _)) = Some (sy, c)
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   121
      | binder _ = None;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   122
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   123
    val mfix = flat (map mfix_of const_decls);
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   124
    val xconsts = map name_of const_decls;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   125
    val binders = mapfilter binder const_decls;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   126
    val binder_trs = map mk_binder_tr binders;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   127
    val binder_trs' = map (mk_binder_tr' o swap) binders;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   128
  in
764
b60e77395d1a changed Pure's grammar and the way types are converted to nonterminals
clasohm
parents: 639
diff changeset
   129
    syn_ext logtypes mfix xconsts ([], binder_trs, binder_trs', []) ([], [])
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   130
  end;
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   131
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   132
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   133
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   134
(** Pure syntax **)
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   135
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   136
val pure_types =
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   137
  map (fn t => (t, 0, NoSyn))
1178
b28c6ecc3e6d added cargs for curried function application
clasohm
parents: 1067
diff changeset
   138
    (terminals @ [logic, "type", "types", "sort", "classes", args, cargs,
1067
00ed040f66e1 I have modified the grammar for idts (sequences of identifiers with optional
nipkow
parents: 922
diff changeset
   139
      "pttrn", "idt", "idts", "aprop", "asms", any, sprop]);
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   140
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   141
val pure_syntax =
781
9ab8873bf9b3 added any, sprop to pure_types;
wenzelm
parents: 764
diff changeset
   142
 [("_lambda",   "[idts, 'a] => logic",            Mixfix ("(3%_./ _)", [], 0)),
921
6bee3815c0bf added declaration of syntactic const "_abs";
wenzelm
parents: 887
diff changeset
   143
  ("_abs",      "'a",                             NoSyn),
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   144
  ("",          "'a => " ^ args,                  Delimfix "_"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   145
  ("_args",     "['a, " ^ args ^ "] => " ^ args,  Delimfix "_,/ _"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   146
  ("",          "id => idt",                      Delimfix "_"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   147
  ("_idtyp",    "[id, type] => idt",              Mixfix ("_::_", [], 0)),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   148
  ("",          "idt => idt",                     Delimfix "'(_')"),
1067
00ed040f66e1 I have modified the grammar for idts (sequences of identifiers with optional
nipkow
parents: 922
diff changeset
   149
  ("",          "idt => pttrn",                   Delimfix "_"),
00ed040f66e1 I have modified the grammar for idts (sequences of identifiers with optional
nipkow
parents: 922
diff changeset
   150
  ("",          "pttrn => idts",                  Delimfix "_"),
00ed040f66e1 I have modified the grammar for idts (sequences of identifiers with optional
nipkow
parents: 922
diff changeset
   151
  ("_idts",     "[pttrn, idts] => idts",          Mixfix ("_/ _", [1, 0], 0)),
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   152
  ("",          "id => aprop",                    Delimfix "_"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   153
  ("",          "var => aprop",                   Delimfix "_"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   154
  ("_aprop",    "aprop => prop",                  Delimfix "PROP _"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   155
  ("",          "prop => asms",                   Delimfix "_"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   156
  ("_asms",     "[prop, asms] => asms",           Delimfix "_;/ _"),
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   157
  ("_bigimpl",  "[asms, prop] => prop",           Mixfix ("((3[| _ |]) ==>/ _)", [0, 1], 1)),
842
8d45c937a485 slightly changed OFCLASS syntax;
wenzelm
parents: 781
diff changeset
   158
  ("_ofclass",  "[type, logic] => prop",          Delimfix "(1OFCLASS/(1'(_,/ _')))"),
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   159
  ("_K",        "'a",                             NoSyn),
624
33b9b5da3e6f made major changes to grammar;
clasohm
parents: 551
diff changeset
   160
  ("",          "id => logic",                    Delimfix "_"),
922
196ca0973a6d added CPure (curried functions) and ProtoPure (ancestor of Pure and CPure)
clasohm
parents: 921
diff changeset
   161
  ("",          "var => logic",                   Delimfix "_")]
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   162
1181
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   163
val pure_appl_syntax =
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   164
 [("_appl",     "[('b => 'a), args] => logic",    Mixfix ("(1_/(1'(_')))",
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   165
                                                    [max_pri, 0], max_pri)),
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   166
  ("_appl",     "[('b => 'a), args] => aprop",    Mixfix ("(1_/(1'(_')))",
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   167
                                                    [max_pri, 0], max_pri))];
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   168
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   169
val pure_applC_syntax =
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   170
 [("",           "'a => cargs",                   Delimfix "_"),
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   171
  ("_cargs",     "['a, cargs] => cargs",          Mixfix ("_/ _",
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   172
                                                   [max_pri, max_pri],
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   173
                                                   max_pri)),
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   174
  ("_applC",     "[('b => 'a), cargs] => logic",  Mixfix ("(1_/ _)",
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   175
                                                   [max_pri, max_pri],
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   176
                                                   max_pri-1)),
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   177
  ("_applC",     "[('b => 'a), cargs] => aprop",  Mixfix ("(1_/ _)",
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   178
                                                   [max_pri, max_pri],
c4e90fb7f8fa moved mixfix syntax from sign.ML
clasohm
parents: 1178
diff changeset
   179
                                                   max_pri-1))];
384
a8d204d8071d support for new style mixfix annotations;
wenzelm
parents:
diff changeset
   180
end;