Definitions infer stack effects.

At start-up defs that DON'T type check are permitted (so you can use e.g.
loop, map, etc.) in the definitions "source", but then the user-facing
inscribe command only allows you to define new commands that DO
type-check.  The ideal solution here is to get inference working for the
loopy words.  (In the meantime you can select and execute their
definition text directly.  That's not (yet!) type-checked.)
This commit is contained in:
Simon Forman
2018-07-17 20:52:57 -07:00
parent c9f405fbe9
commit 7607ca7650
3 changed files with 47 additions and 84 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ from inspect import getdoc
from joy.joy import run
from joy.parser import Symbol
from joy.utils.stack import stack_to_string
from joy.utils.polytypes import type_check
from joy.utils.types import type_check
def is_numerical(s):