Skip to content

Commit

Permalink
JSON ops for binary clear, compsite & rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Dec 30, 2024
1 parent 4c63100 commit 0f4fba2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion mathics/builtin/assignments/clear.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,6 @@ class Unset(PostfixOperator):
"""

attributes = A_HOLD_FIRST | A_LISTABLE | A_PROTECTED | A_READ_PROTECTED
operator = "=."

messages = {
"norep": "Assignment on `2` for `1` not found.",
Expand Down
1 change: 0 additions & 1 deletion mathics/builtin/exp_structure/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ class MapApply(InfixOperator):
"""

grouping = "Right"
operator = "@@@"

rules = {
"MapApply[f_, expr_]": "Apply[f, expr, {1}]",
Expand Down
1 change: 0 additions & 1 deletion mathics/builtin/patterns/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class Alternatives(InfixOperator, PatternObject):

arg_counts = None
needs_verbatim = True
operator = "|"
summary_text = "match to any of several patterns"

def init(
Expand Down
3 changes: 0 additions & 3 deletions mathics/builtin/patterns/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ class ReplaceAll(InfixOperator):

grouping = "Left"
needs_verbatim = True
operator = "/."

messages = {
"reps": "`1` is not a valid replacement rule.",
Expand Down Expand Up @@ -435,7 +434,6 @@ class ReplaceRepeated(InfixOperator):

grouping = "Left"
needs_verbatim = True
operator = "//."

messages = {
"reps": "`1` is not a valid replacement rule.",
Expand Down Expand Up @@ -542,7 +540,6 @@ class RuleDelayed(InfixOperator):

attributes = A_SEQUENCE_HOLD | A_HOLD_REST | A_PROTECTED
needs_verbatim = True
operator = ":>"
summary_text = "a rule that keeps the replacement unevaluated"

def eval_rule_delayed(self, elems, evaluation):
Expand Down

0 comments on commit 0f4fba2

Please sign in to comment.