Skip to content

Commit 5358b37

Browse files
committed
Go over Prefix, Infix, Postfix...
in preparation for boxing use inside mathics-core. Basically, reinstate or add Infix. Comments for Postfix and Prefix have been tweaked.
1 parent 15562a0 commit 5358b37

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

mathics_scanner/data/named-characters.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
# can be used as part of a symbol. For example \[alpha]
4141
# is letter-like. Therefore we can write: \[alpha]5 = "testing"
4242
#
43-
# operator-name: If present, this symbol is a Mathics operator with
43+
# operator-name: If present, this symbol is a Mathics3 operator with
4444
# whose class name is the given name. For example, the
4545
# Divide operator, "/" is here. But some symbols like
4646
# "`" or "." inside a number could be considered
4747
# either an operator or as part of a lexical symbol.
4848
# "operators.yml" may contain use these symbols, while here we
4949
# might not (or we might). Also, from an operator
50-
# prespective, an operator name like "Association"
50+
# perspective, an operator name like "Association"
5151
# might have *two* (bracketing) symbols associated
5252
# here: "LeftAssociation" and "RightAssociation".
5353
# More operator information can be found in
@@ -62,9 +62,9 @@
6262
# unicode names that we check against. So if the character
6363
# or unicode symbol is not in that, don't use it here.
6464
#
65-
# wl-reference: HTML link to the Wolfram Langauge & System document for character.
65+
# wl-reference: HTML link to the Wolfram Language & System document for character.
6666
#
67-
# wl-unicode: The unicode code point used by Mathics internally to represent
67+
# wl-unicode: The unicode code point used by Mathics3 internally to represent
6868
# the named character. If it is the same as unicode-equivalent
6969
# it should be omitted
7070
#
@@ -4965,7 +4965,7 @@ FreakedSmiley:
49654965

49664966
# IMPORTANT!
49674967
# ----------
4968-
# For the Mathics Parser to work circa 2021...
4968+
# For the Mathics3 Parser to work circa 2021...
49694969
# If there is a unicode operator, as we have here for "Function", then
49704970
# the YAML key *has* to be the operator name. ("Function" here).
49714971
#
@@ -5964,7 +5964,7 @@ Infinity:
59645964
wl-unicode: "\u221E"
59655965
wl-unicode-name: INFINITY
59665966

5967-
# Infix isn't really an operator
5967+
# This is the default infix symbol used in boxing/formatting Infix[] expressions.
59685968
# See also RawTilde
59695969
Infix:
59705970
ascii: "~"
@@ -7939,6 +7939,7 @@ Pluto:
79397939
wl-unicode: "\u2647"
79407940
wl-unicode-name: PLUTO
79417941

7942+
# This is the default postfix operator character used when boxing/formatting Postfix[] expressions.
79427943
Postfix:
79437944
ascii: "//"
79447945
has-unicode-inverse: false
@@ -8008,12 +8009,11 @@ PrecedesTilde:
80088009
wl-unicode: "\u227E"
80098010
wl-unicode-name: PRECEDES OR EQUIVALENT TO
80108011

8011-
# Prefix isn't really an operator
8012-
# Prefix:
8013-
# ascii: "@"
8014-
# has-unicode-inverse: false
8015-
# is-letter-like: false
8016-
# operator-name: Prefix
8012+
# This is the default prefix operator character used when boxing/formatting Prefix[] expressions.
8013+
Prefix:
8014+
ascii: "@"
8015+
has-unicode-inverse: false
8016+
is-letter-like: false
80178017

80188018
Prime:
80198019
esc-alias: ''''
@@ -10163,10 +10163,8 @@ Thorn:
1016310163
wl-unicode: "\xFE"
1016410164
wl-unicode-name: LATIN SMALL LETTER THORN
1016510165

10166-
# See also operator Infix.
1016710166
# Tilde has no built-in meaning per the documentation,
1016810167
# so it is not the same as RawTilde.
10169-
# Yes, it is confusing.
1017010168
Tilde:
1017110169
amslatex: '\sim'
1017210170
esc-alias: '~'

0 commit comments

Comments
 (0)