Skip to content

Commit ee6d373

Browse files
authored
Merge branch 'master' into operator-info-from-JSON
2 parents d8e411d + bbc7d37 commit ee6d373

File tree

5 files changed

+45
-41
lines changed

5 files changed

+45
-41
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If this is too long, then try narrowing the problem to something short.
5151

5252
## Your Environment
5353

54-
<!-- _This information can be helpful..
54+
<!-- _This information can be helpful...
5555
5656
**All: Mathics version, Installed Python Python packages.
5757

COPYING.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
This file is about the copyright on Mathics and all included components.
2-
1+
This file is about the copyright on Mathics3 and all included components.
2+
33
* ORIGINAL MATHICS CODE:
44

5-
All original Mathics code is distributed under the terms of the
5+
All original Mathics code is distributed under the terms of the
66
GNU General Public License, version 3.
7-
7+
88
This code is distributed in the hope that it will be useful,
99
but WITHOUT ANY WARRANTY; without even the implied warranty of
1010
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111
General Public License for more details.
12-
12+
1313
The full text of the GPL is available below in this file. Details of
1414
the licenses of the components of Mathics are included below as well.
15-
15+
1616
* LICENSES OF INCLUDED DATA:
1717

18-
Mathics includes data from Wikipedia that is published under the Creative
19-
Commons Attribution-Sharealike 3.0 Unported License and the GNU Free
20-
Documentation License contributed by the respective authors that are listed
18+
Mathics includes data from Wikipedia that is published under the Creative
19+
Commons Attribution-Sharealike 3.0 Unported License and the GNU Free
20+
Documentation License contributed by the respective authors that are listed
2121
on the websites specified in "data/elements.txt".
2222

2323

2424
* LICENSES OF INCLUDED SOFTWARE:
25-
25+
2626
SOFTWARE LICENSE
2727
----------------------------------------------
2828
scripaculous MIT
@@ -31,14 +31,14 @@ MathJax Apache 2.0
3131
Three.js MIT
3232
pymimemagic BSD 3-Clause
3333
SciPy BSD 3-Clause
34-
34+
3535
CONTACT INFO:
36-
Jan Poeschko; [email protected];
36+
Jan Poeschko; [email protected];
3737
https://mathics.org/
3838

3939
=========================================================================
40-
41-
40+
41+
4242
GNU GENERAL PUBLIC LICENSE
4343
Version 3, 29 June 2007
4444

@@ -713,7 +713,7 @@ may consider it more useful to permit linking proprietary applications with
713713
the library. If this is what you want to do, use the GNU Lesser General
714714
Public License instead of this License. But first, please read
715715
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
716-
716+
717717
================================================================================
718718

719719
scriptaculous:

admin-tools/make-op-tables.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ mathics3-generate-json-table \
1313
--field=operator-to-unicode \
1414
-o op-tables.json
1515
mathics3-generate-operator-json-table -o operator-tables.json
16+
# tokenizer looks for the table in the default place...
17+
mathics3-generate-operator-json-table

examples/symbolic_logic/gries_schneider/GS1.m

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(* ****************************************************************************
22
3-
by Brian Beckman. License the same as for mathics.
3+
by Brian Beckman. License the same as for Mathics3: GPL3.
44
55
Oct 2020
66
@@ -32,8 +32,8 @@
3232
(* Section 1.2 Textual substitution, page 8
3333
_____ _ _ ___ _ _ _ _ _ _
3434
|_ _|____ _| |_ _ _ __ _| | / __|_ _| |__ __| |_(_) |_ _ _| |_(_)___ _ _
35-
| |/ -_) \ / _| || / _` | | \__ \ || | '_ (_-< _| | _| || | _| / _ \ ' \
36-
|_|\___/_\_\\__|\_,_\__,_|_| |___/\_,_|_.__/__/\__|_|\__|\_,_|\__|_\___/_||_|
35+
| |/ -_) \ / _| || / _` | | |__ \ || | '_ (_-< _| | _| || | _| / _ \ ' \
36+
|_||___/_|_||__||_,_|__,_|_| |___/|_,_|_.__/__/|__|_||__||_,_||__|_|___/_||_|
3737
3838
Mathics gives us direct syntax for Gries & Schneider's (G&S)'s "textual
3939
substitution:"
@@ -245,13 +245,13 @@
245245

246246
(* Inference Rule Substitution (1.1), page 10
247247
___ __ ___ _ _
248-
|_ _|_ _ / _|___ _ _ ___ _ _ __ ___ | _ \_ _| |___(_)
249-
| || ' \| _/ -_) '_/ -_) ' \/ _/ -_) | / || | / -_)_
250-
|___|_||_|_| \___|_| \___|_||_\__\___| |_|_\\_,_|_\___(_)
248+
|_ _|_ _ / _|___ _ _ ___ _ _ __ ___ | _ |_ _| |___(_)
249+
| || ' || _/ -_) '_/ -_) ' |/ _/ -_) | / || | / -_)_
250+
|___|_||_|_| |___|_| |___|_||_|__|___| |_|_||_,_|_|___(_)
251251
___ _ _ _ _ _ _
252252
/ __|_ _| |__ __| |_(_) |_ _ _| |_(_)___ _ _
253-
\__ \ || | '_ (_-< _| | _| || | _| / _ \ ' \
254-
|___/\_,_|_.__/__/\__|_|\__|\_,_|\__|_\___/_||_|
253+
|__ | || | '_ (_-< _| | _| || | _| / _ | ' |
254+
|___/|_,_|_.__/__/|__|_||__||_,_||__|_|___/_||_|
255255
256256
The inference rule 'Substitution' takes in a top-line expression e, a list
257257
of variables v, and a corresponding list of replacement expressions f, and
@@ -335,12 +335,12 @@
335335
(* Section 1.3 Textual substitution and equality, page 11
336336
_____ _ _ ___ _ _ _ _ _ _
337337
|_ _|____ _| |_ _ _ __ _| | / __|_ _| |__ __| |_(_) |_ _ _| |_(_)___ _ _
338-
| |/ -_) \ / _| || / _` | | \__ \ || | '_ (_-< _| | _| || | _| / _ \ ' \
339-
|_|\___/_\_\\__|\_,_\__,_|_| |___/\_,_|_.__/__/\__|_|\__|\_,_|\__|_\___/_||_|
338+
| |/ -_) | / _| || / _` | | |__ | || | '_ (_-< _| | _| || | _| / _ | ' |
339+
|_||___/_|_||__||_,_|__,_|_| |___/|_,_|_.__/__/|__|_||__||_,_||__|_|___/_||_|
340340
_ ___ _ _ _
341341
__ _ _ _ __| | | __|__ _ _ _ __ _| (_) |_ _ _
342-
/ _` | ' \/ _` | | _|/ _` | || / _` | | | _| || |
343-
\__,_|_||_\__,_| |___\__, |\_,_\__,_|_|_|\__|\_, |
342+
/ _` | ' |/ _` | | _|/ _` | || / _` | | | _| || |
343+
|__,_|_||_|__,_| |___|__, ||_,_|__,_|_|_||__||_, |
344344
|_| |__/
345345
346346
Going forward, we want more inference and less evaluation. This is tricky in
@@ -1054,8 +1054,8 @@ over and over (google "don't repeat yourself"), introduce "Postfix notation
10541054
(* Here is a cheat sheet of all the rules we've defined so far.
10551055
___ _ _ ___ _ _ __
10561056
/ __| |_ ___ __ _| |_ / __| |_ ___ ___| |_ ___ ___ / _|__ _ _ _
1057-
| (__| ' \/ -_) _` | _| \__ \ ' \/ -_) -_) _| (_-</ _ \ | _/ _` | '_|
1058-
\___|_||_\___\__,_|\__| |___/_||_\___\___|\__| /__/\___/ |_| \__,_|_|
1057+
| (__| ' |/ -_) _` | _| |__ | ' |/ -_) -_) _| (_-</ _ | | _/ _` | '_|
1058+
|___|_||_|___|__,_||__| |___/_||_|___|___||__| /__/|___/ |_| |__,_|_|
10591059
10601060
(* 1.1 *) substitutionInferenceRule[e_, v_:List, f_:List] :=
10611061
Module[{ rules = MapThread[ Rule, {v, f} ] }, e /. rules ]
@@ -1091,13 +1091,13 @@ over and over (google "don't repeat yourself"), introduce "Postfix notation
10911091

10921092
(* Section 1.4 Leibniz's rule and function evaluation, page 13
10931093
_ _ _ _ _ ___ _ _
1094-
| | ___(_) |__ _ _ (_)__( )___ | _ \_ _| |___ __ _ _ _ __| |
1095-
| |__/ -_) | '_ \ ' \| |_ //|_ / | / || | / -_) / _` | ' \/ _` |
1096-
|____\___|_|_.__/_||_|_/__| /__| |_|_\\_,_|_\___| \__,_|_||_\__,_|
1094+
| | ___(_) |__ _ _ (_)__( )___ | _ |_ _| |___ __ _ _ _ __| |
1095+
| |__/ -_) | '_ | ' || |_ //|_ / | / || | / -_) / _` | ' |/ _` |
1096+
|____|___|_|_.__/_||_|_/__| /__| |_|_||_,_|_|___| |__,_|_||_|__,_|
10971097
___ _ _ ___ _ _ _
10981098
| __| _ _ _ __| |_(_)___ _ _ | __|_ ____ _| |_ _ __ _| |_(_)___ _ _
1099-
| _| || | ' \/ _| _| / _ \ ' \ | _|\ V / _` | | || / _` | _| / _ \ ' \
1100-
|_| \_,_|_||_\__|\__|_\___/_||_| |___|\_/\__,_|_|\_,_\__,_|\__|_\___/_||_|
1099+
| _| || | ' |/ _| _| / _ | ' | | _|| V / _` | | || / _` | _| / _ | ' |
1100+
|_| |_,_|_||_|__||__|_|___/_||_| |___||_/|__,_|_||_,_|__,_||__|_|___/_||_|
11011101
11021102
Start at the bottom of page 13. A lot of this we can do without prose, now,
11031103
because we're getting accustomed to the style.
@@ -1524,9 +1524,9 @@ calculus is (from page 42)
15241524

15251525
(* Section 1.6, The assignment statement, page 16
15261526
_ _ _
1527-
/_\ _____(_)__ _ _ _ _ __ ___ _ _| |_
1528-
/ _ \ (_-<_-< / _` | ' \| ' \/ -_) ' \ _|
1529-
/_/ \_\/__/__/_\__, |_||_|_|_|_\___|_||_\__|
1527+
/_| _____(_)__ _ _ _ _ __ ___ _ _| |_
1528+
/ _ | (_-<_-< / _` | ' || ' |/ -_) ' | _|
1529+
/_/ |_|/__/__/_|__, |_||_|_|_|_|___|_||_|__|
15301530
|___/
15311531
15321532
Here we exhibit the first instance of a "type." It's just a head and some
@@ -1675,8 +1675,8 @@ enclosing our variables in curly braces (List brackets).
16751675
(* Exercises for Chapter 1, pages 21-23
16761676
___ _ ___ _ _
16771677
| __|_ _____ _ _ __(_)___ ___ ___ / __| |_ / |
1678-
| _|\ \ / -_) '_/ _| (_-</ -_|_-< | (__| ' \ _ | |
1679-
|___/_\_\___|_| \__|_/__/\___/__/ \___|_||_(_) |_|
1678+
| _|| | / -_) '_/ _| (_-</ -_|_-< | (__| ' | _ | |
1679+
|___/_|_|___|_| |__|_/__/|___/__/ |___|_||_(_) |_|
16801680
16811681
*************************************************************************** *)
16821682

mathics/builtin/no_meaning.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
)
2424
from mathics.core.parser.operators import OPERATOR_DATA
2525

26+
# This tells documentation how to sort this module
27+
sort_order = "mathics.builtin.operators-without-built-in-meanings"
28+
2629

2730
def init():
2831
# Generate no-meaning Mathics3 Builtin class from the operator name,
@@ -66,7 +69,6 @@ def init():
6669

6770
init()
6871

69-
7072
class DirectedEdge(InfixOperator):
7173
# This will be used to create a docstring
7274
r"""

0 commit comments

Comments
 (0)