Skip to content

Commit 11fc371

Browse files
committed
adding comment
1 parent 0f1cf28 commit 11fc371

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mathics/builtin/layout.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,15 @@ def eval_makeboxes_infix(
4949
precedence_value: Optional[int] = None,
5050
grouping: Optional[str] = None,
5151
):
52-
"""Implements MakeBoxes[Infix[...]]"""
52+
"""Implements MakeBoxes[Infix[...]]."""
53+
54+
# Actually, this function implements one part of the evaluation:
55+
# the one that should be done at the "format" level. In that point,
56+
# the operators are processed to add spaces and use the right
57+
# encoding. This should be done at the level of the formatter, not
58+
# in the "MakeBoxes" step.
59+
# Then, the true implementation is done
60+
# in ```mathics.eval.makeboxes.make_boxes_infix```.
5361

5462
## FIXME: this should go into a some formatter.
5563
def format_operator(operator) -> Union[String, BaseElement]:

0 commit comments

Comments
 (0)