# HG changeset patch # User wenzelm # Date 1727013535 -7200 # Node ID a37ed1aeb1639787889b6485074815031d5d168e # Parent bbe2c56fe255f9dba59fd8ce4d516fcb069710f2 clarified inner syntax markup: use "notation" uniformly; diff -r bbe2c56fe255 -r a37ed1aeb163 src/Pure/PIDE/markup_kind.ML --- a/src/Pure/PIDE/markup_kind.ML Sun Sep 22 15:46:19 2024 +0200 +++ b/src/Pure/PIDE/markup_kind.ML Sun Sep 22 15:58:55 2024 +0200 @@ -21,14 +21,9 @@ val markup_postfix: Markup.T val markup_infix: Markup.T val markup_binder: Markup.T - val markup_type: Markup.T val markup_type_application: Markup.T - val markup_term: Markup.T - val markup_term_application: Markup.T - val markup_term_abstraction: Markup.T - val markup_prop: Markup.T - val markup_prop_application: Markup.T - val markup_prop_abstraction: Markup.T + val markup_application: Markup.T + val markup_abstraction: Markup.T end; structure Markup_Kind: MARKUP_KIND = @@ -102,15 +97,8 @@ val markup_infix = setup_notation (Binding.make ("infix", \<^here>)); val markup_binder = setup_notation (Binding.make ("binder", \<^here>)); -val markup_type = setup_expression (Binding.make ("type", \<^here>)); -val markup_type_application = setup_expression (Binding.make ("type_application", \<^here>)); - -val markup_term = setup_expression (Binding.make ("term", \<^here>)); -val markup_term_application = setup_expression (Binding.make ("term_application", \<^here>)); -val markup_term_abstraction = setup_expression (Binding.make ("term_abstraction", \<^here>)); - -val markup_prop = setup_expression (Binding.make ("prop", \<^here>)); -val markup_prop_application = setup_expression (Binding.make ("prop_application", \<^here>)); -val markup_prop_abstraction = setup_expression (Binding.make ("prop_abstraction", \<^here>)); +val markup_type_application = setup_notation (Binding.make ("type_application", \<^here>)); +val markup_application = setup_notation (Binding.make ("application", \<^here>)); +val markup_abstraction = setup_notation (Binding.make ("abstraction", \<^here>)); end; diff -r bbe2c56fe255 -r a37ed1aeb163 src/Pure/pure_thy.ML --- a/src/Pure/pure_thy.ML Sun Sep 22 15:46:19 2024 +0200 +++ b/src/Pure/pure_thy.ML Sun Sep 22 15:58:55 2024 +0200 @@ -34,17 +34,17 @@ val appl_syntax = [("_appl", typ "('b \ 'a) \ args \ logic", - mixfix ("(\indent=1 expression=term_application\_/(1'(_')))", [1000, 0], 1000)), + mixfix ("(\indent=1 notation=application\_/(1'(_')))", [1000, 0], 1000)), ("_appl", typ "('b \ 'a) \ args \ aprop", - mixfix ("(\indent=1 expression=term_application\_/(1'(_')))", [1000, 0], 1000))]; + mixfix ("(\indent=1 notation=application\_/(1'(_')))", [1000, 0], 1000))]; val applC_syntax = [("", typ "'a \ cargs", Mixfix.mixfix "_"), ("_cargs", typ "'a \ cargs \ cargs", mixfix ("_/ _", [1000, 1000], 1000)), ("_applC", typ "('b \ 'a) \ cargs \ logic", - mixfix ("(\indent=1 expression=term_application\_/ _)", [1000, 1000], 999)), + mixfix ("(\indent=1 notation=application\_/ _)", [1000, 1000], 999)), ("_applC", typ "('b \ 'a) \ cargs \ aprop", - mixfix ("(\indent=1 expression=term_application\_/ _)", [1000, 1000], 999))]; + mixfix ("(\indent=1 notation=application\_/ _)", [1000, 1000], 999))]; structure Old_Appl_Syntax = Theory_Data ( @@ -119,7 +119,7 @@ ("_classes", typ "class_name \ classes \ classes", Mixfix.mixfix "_,_"), ("_tapp", typ "type \ type_name \ type", mixfix ("_ _", [1000, 0], 1000)), ("_tappl", typ "type \ types \ type_name \ type", - Mixfix.mixfix "(\expression=type_application\(1'(_,/ _')) _)"), + Mixfix.mixfix "(\notation=type_application\(1'(_,/ _')) _)"), ("", typ "type \ types", Mixfix.mixfix "_"), ("_types", typ "type \ types \ types", Mixfix.mixfix "_,/ _"), ("\<^type>fun", typ "type \ type \ type", @@ -130,7 +130,7 @@ ("\<^type>dummy", typ "type", Mixfix.mixfix "'_"), ("_type_prop", typ "'a", NoSyn), ("_lambda", typ "pttrns \ 'a \ logic", - mixfix ("(\indent=3 expression=term_abstraction\\_./ _)", [0, 3], 3)), + mixfix ("(\indent=3 notation=abstraction\\_./ _)", [0, 3], 3)), ("_abs", typ "'a", NoSyn), ("", typ "'a \ args", Mixfix.mixfix "_"), ("_args", typ "'a \ args \ args", Mixfix.mixfix "_,/ _"), @@ -200,7 +200,7 @@ ("_bracket", typ "types \ type \ type", mixfix ("(\notation=\infix =>\\[_]/ => _)", [0, 0], 0)), ("_lambda", typ "pttrns \ 'a \ logic", - mixfix ("(\indent=3 expression=term_abstraction\%_./ _)", [0, 3], 3)), + mixfix ("(\indent=3 notation=abstraction\%_./ _)", [0, 3], 3)), (const "Pure.eq", typ "'a \ 'a \ prop", infix_ ("==", 2)), (const "Pure.all_binder", typ "idts \ prop \ prop", mixfix ("(\indent=3 notation=\binder !!\\!!_./ _)", [0, 0], 0)),