Commit Graph

8 Commits

Author SHA1 Message Date
Simon Forman 7f193fbdbe This brings Python Joy into congruence with Nim.
It's hacky.  I edited the generated file.  The more complicated
functions like popop will not generate the same errors as the Nim
versions.  This is only congruence in the sense that the current jtest
suite passes identically on both.

Ideally I should be generating both the Nim and Python code from the
Prolog compiler.
2021-04-09 18:01:07 -07:00
Simon Forman 8e0472a5ff Correct swap. 2021-04-09 17:49:44 -07:00
Simon Forman 7957136ac3 Correct swaack. 2021-04-09 17:46:45 -07:00
Simon Forman e417842923 Customizing error messages. 2021-04-09 17:41:42 -07:00
Simon Forman 8c65046420 Interesting that Nim checks type of first arg...
...before stack depth of second arg.
2021-04-09 16:59:06 -07:00
Simon Forman 8bd0e7ce0e Remove the types stuff et. al. 2020-05-19 13:01:37 -07:00
Simon Forman fc45727008 Minor cleanup. 2018-06-27 19:03:23 -07:00
Simon Forman 968556c7f3 Simple type inference and compiler.
The compiler works for the subset of Joy functions that deal strictly in
manipulating stacks and their contents.
2018-06-21 21:23:34 -07:00