Just put ≡ inline.
This commit is contained in:
parent
88f3cc4bbe
commit
660fdb0bef
|
|
@ -970,9 +970,7 @@ class Def(object):
|
||||||
tribar = '\u2261' # '≡'
|
tribar = '\u2261' # '≡'
|
||||||
|
|
||||||
def __init__(self, name, body):
|
def __init__(self, name, body):
|
||||||
self.__doc__ = (
|
self.__doc__ = f'{name} ≡ {expression_to_string(body)}'
|
||||||
f'{name} {self.tribar} {expression_to_string(body)}'
|
|
||||||
)
|
|
||||||
self.__name__ = name
|
self.__name__ = name
|
||||||
self.body = tuple(iter_stack(body))
|
self.body = tuple(iter_stack(body))
|
||||||
|
|
||||||
|
|
@ -987,11 +985,9 @@ class Def(object):
|
||||||
definitions (lines with '≡' in them) into the dictionary.
|
definitions (lines with '≡' in them) into the dictionary.
|
||||||
'''
|
'''
|
||||||
for line in stream:
|
for line in stream:
|
||||||
if class_.tribar not in line:
|
if '≡' not in line:
|
||||||
continue
|
continue
|
||||||
name, body = text_to_expression(
|
name, body = text_to_expression(line.replace('≡', ''))
|
||||||
line.replace(class_.tribar, '')
|
|
||||||
)
|
|
||||||
if name not in dictionary:
|
if name not in dictionary:
|
||||||
inscribe(class_(name, body), dictionary)
|
inscribe(class_(name, body), dictionary)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue