clarified comparison: prefer authentic nonterminal context, instead of somewhat accidental "const";
authorwenzelm
Sun, 29 Sep 2024 15:58:28 +0200
changeset 81002 1f5462055655
parent 81001 0c6a600c8939
child 81003 6aaf15e5e3c9
clarified comparison: prefer authentic nonterminal context, instead of somewhat accidental "const";
src/Pure/Syntax/parser.ML
--- a/src/Pure/Syntax/parser.ML	Sun Sep 29 15:24:17 2024 +0200
+++ b/src/Pure/Syntax/parser.ML	Sun Sep 29 15:58:28 2024 +0200
@@ -531,8 +531,8 @@
     if pointer_eq arg then EQUAL
     else
       (case apply2 drop_markup arg of
-        (Node_Op ({const = s, ...}, ts) :: rest, Node_Op ({const = s', ...}, ts') :: rest') =>
-          (case fast_string_ord (s, s') of
+        (Node_Op ({nonterm = nt, ...}, ts) :: rest, Node_Op ({nonterm = nt', ...}, ts') :: rest') =>
+          (case int_ord (nt, nt') of
             EQUAL =>
               (case tree_ops_ord (ts, ts') of
                 EQUAL => tree_ops_ord (rest, rest')