src/Pure/ML/ml_antiquotations.ML
changeset 74567 40910c47d7a1
parent 74566 8e0f0317e266
child 74570 7625b5d7cfe2
equal deleted inserted replaced
74566:8e0f0317e266 74567:40910c47d7a1
   250 
   250 
   251 local
   251 local
   252 
   252 
   253 fun make_keywords ctxt =
   253 fun make_keywords ctxt =
   254   Thy_Header.get_keywords' ctxt
   254   Thy_Header.get_keywords' ctxt
   255   |> Keyword.no_command_keywords
   255   |> Keyword.no_major_keywords
   256   |> Keyword.add_major_keywords ["typ", "term", "prop", "ctyp", "cterm", "cprop"];
   256   |> Keyword.add_major_keywords ["typ", "term", "prop", "ctyp", "cterm", "cprop"];
   257 
   257 
   258 val parse_inst =
   258 val parse_inst =
   259   Parse.position (Parse.type_ident >> pair true || Parse.name >> pair false) --
   259   Parse.position (Parse.type_ident >> pair true || Parse.name >> pair false) --
   260     (Parse.$$$ "=" |-- Parse.!!! Parse.embedded_ml) >> (fn (((b, a), pos), ml) => (b, ((a, pos), ml)));
   260     (Parse.$$$ "=" |-- Parse.!!! Parse.embedded_ml) >> (fn (((b, a), pos), ml) => (b, ((a, pos), ml)));