From 15562a0a0b5042aacdb78fb9442f9211e4523b04 Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 29 Aug 2025 10:35:05 -0400 Subject: [PATCH 1/2] Bump version --- mathics_scanner/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mathics_scanner/version.py b/mathics_scanner/version.py index b8d1327..446464f 100644 --- a/mathics_scanner/version.py +++ b/mathics_scanner/version.py @@ -4,4 +4,4 @@ # well as importing into Python. That's why there is no # space around "=" below. # fmt: off -__version__="2.0.0" # noqa +__version__="2.0.1.dev0" # noqa From 5358b3784a80ba5b53b2a17db4b562efb2079db7 Mon Sep 17 00:00:00 2001 From: rocky Date: Mon, 5 Jan 2026 18:45:16 -0500 Subject: [PATCH 2/2] 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. --- mathics_scanner/data/named-characters.yml | 26 +++++++++++------------ 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/mathics_scanner/data/named-characters.yml b/mathics_scanner/data/named-characters.yml index e94d6c0..d13acb8 100644 --- a/mathics_scanner/data/named-characters.yml +++ b/mathics_scanner/data/named-characters.yml @@ -40,14 +40,14 @@ # can be used as part of a symbol. For example \[alpha] # is letter-like. Therefore we can write: \[alpha]5 = "testing" # -# operator-name: If present, this symbol is a Mathics operator with +# operator-name: If present, this symbol is a Mathics3 operator with # whose class name is the given name. For example, the # Divide operator, "/" is here. But some symbols like # "`" or "." inside a number could be considered # either an operator or as part of a lexical symbol. # "operators.yml" may contain use these symbols, while here we # might not (or we might). Also, from an operator -# prespective, an operator name like "Association" +# perspective, an operator name like "Association" # might have *two* (bracketing) symbols associated # here: "LeftAssociation" and "RightAssociation". # More operator information can be found in @@ -62,9 +62,9 @@ # unicode names that we check against. So if the character # or unicode symbol is not in that, don't use it here. # -# wl-reference: HTML link to the Wolfram Langauge & System document for character. +# wl-reference: HTML link to the Wolfram Language & System document for character. # -# wl-unicode: The unicode code point used by Mathics internally to represent +# wl-unicode: The unicode code point used by Mathics3 internally to represent # the named character. If it is the same as unicode-equivalent # it should be omitted # @@ -4965,7 +4965,7 @@ FreakedSmiley: # IMPORTANT! # ---------- -# For the Mathics Parser to work circa 2021... +# For the Mathics3 Parser to work circa 2021... # If there is a unicode operator, as we have here for "Function", then # the YAML key *has* to be the operator name. ("Function" here). # @@ -5964,7 +5964,7 @@ Infinity: wl-unicode: "\u221E" wl-unicode-name: INFINITY -# Infix isn't really an operator +# This is the default infix symbol used in boxing/formatting Infix[] expressions. # See also RawTilde Infix: ascii: "~" @@ -7939,6 +7939,7 @@ Pluto: wl-unicode: "\u2647" wl-unicode-name: PLUTO +# This is the default postfix operator character used when boxing/formatting Postfix[] expressions. Postfix: ascii: "//" has-unicode-inverse: false @@ -8008,12 +8009,11 @@ PrecedesTilde: wl-unicode: "\u227E" wl-unicode-name: PRECEDES OR EQUIVALENT TO -# Prefix isn't really an operator -# Prefix: -# ascii: "@" -# has-unicode-inverse: false -# is-letter-like: false -# operator-name: Prefix +# This is the default prefix operator character used when boxing/formatting Prefix[] expressions. +Prefix: + ascii: "@" + has-unicode-inverse: false + is-letter-like: false Prime: esc-alias: '''' @@ -10163,10 +10163,8 @@ Thorn: wl-unicode: "\xFE" wl-unicode-name: LATIN SMALL LETTER THORN -# See also operator Infix. # Tilde has no built-in meaning per the documentation, # so it is not the same as RawTilde. -# Yes, it is confusing. Tilde: amslatex: '\sim' esc-alias: '~'