"translations": allow harpoons;
authorwenzelm
Mon, 11 Dec 2000 20:11:57 +0100
changeset 10644 d3190c5a0e76
parent 10643 66d093e2076e
child 10645 175ccbd5415a
"translations": allow harpoons;
src/Pure/Isar/isar_syn.ML
--- a/src/Pure/Isar/isar_syn.ML	Mon Dec 11 20:11:11 2000 +0100
+++ b/src/Pure/Isar/isar_syn.ML	Mon Dec 11 20:11:57 2000 +0100
@@ -152,8 +152,11 @@
 
 fun trans_arrow toks =
   (P.$$$ "=>" >> K Syntax.ParseRule ||
+    P.$$$ "\\<rightharpoonup>" >> K Syntax.ParseRule ||
     P.$$$ "<=" >> K Syntax.PrintRule ||
-    P.$$$ "==" >> K Syntax.ParsePrintRule) toks;
+    P.$$$ "\\<leftharpoondown>" >> K Syntax.PrintRule ||
+    P.$$$ "==" >> K Syntax.ParsePrintRule ||
+    P.$$$ "\\<rightleftharpoons>" >> K Syntax.ParsePrintRule) toks;
 
 val trans_line =
   trans_pat -- P.!!! (trans_arrow -- trans_pat)
@@ -667,7 +670,8 @@
 val keywords =
  ["!", "!!", "%", "%%", "(", ")", "+", ",", "--", ":", "::", ";", "<",
   "<=", "=", "==", "=>", "?", "[", "]", "and", "binder", "concl",
-  "files", "in", "infixl", "infixr", "is", "output", "overloaded", "|"];
+  "files", "in", "infixl", "infixr", "is", "output", "overloaded", "|",
+  "\\<rightharpoonup>", "\\<leftharpoondown>", "\\<rightleftharpoons>"];
 
 val parsers = [
   (*theory structure*)