Load embedded defs.txt, remove ≡ stuff.
I like that ≡ but I also like consistency.
This commit is contained in:
parent
25c48e059b
commit
178e58f8bd
|
|
@ -59,7 +59,7 @@ from traceback import print_exc
|
||||||
import operator
|
import operator
|
||||||
|
|
||||||
|
|
||||||
DEFS = '''
|
DEFS = '''\
|
||||||
'''.splitlines()
|
'''.splitlines()
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1065,9 +1065,7 @@ 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 '≡' not in line:
|
name, body = text_to_expression(line)
|
||||||
continue
|
|
||||||
name, body = text_to_expression(line.replace('≡', ''))
|
|
||||||
if name not in dictionary:
|
if name not in dictionary:
|
||||||
inscribe(class_(name, body), dictionary)
|
inscribe(class_(name, body), dictionary)
|
||||||
|
|
||||||
|
|
@ -2540,7 +2538,7 @@ def unswons(stack):
|
||||||
|
|
||||||
|
|
||||||
def default_defs(dictionary):
|
def default_defs(dictionary):
|
||||||
Def.load_definitions(__doc__.splitlines(), dictionary)
|
Def.load_definitions(DEFS, dictionary)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue