Skip to content

Commit d39456f

Browse files
committed
adding missing functions
1 parent 73b7e81 commit d39456f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

mathics/format/outputform.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@ class IsNot2DArray(Exception):
5353
pass
5454

5555

56+
def parenthesize(expr_str: str) -> str:
57+
"""wrap with parenthesis"""
58+
return f"({expr_str})"
59+
60+
61+
def bracket(expr_str: str) -> str:
62+
"""wrap with square brackets"""
63+
return f"[{expr_str}]"
64+
65+
66+
def grid(expr):
67+
raise NotImplementedError
68+
69+
5670
def expression_to_outputform_text(
5771
expr: BaseElement, evaluation: Evaluation, form=SymbolStandardForm, **kwargs
5872
):

0 commit comments

Comments
 (0)