Simon Forman
e0a36eab8b
Remove '==' from definitions. (Bools)
...
I decided that the conceptual simplicity of omitting '==' is more useful
than the cosmetic value of keeping it. The defs.txt file is now just one
definition per line with the first symbol giving the name.
Also, bools are literals.
2020-01-26 09:48:30 -08:00
Simon Forman
ed41395560
Definition for 'not' in terms of 'branch'.
2020-01-26 08:44:57 -08:00
Simon Forman
b9ae00cecb
A few more functions.
...
reverse, shift, shunt, take, split_at
2019-08-09 07:26:37 -07:00
Simon Forman
32d5953f29
Implement map combinator.
2019-07-21 08:28:56 -07:00
Simon Forman
84a2de7790
Tiny edits. Almost nothing.
2019-07-21 07:32:20 -07:00
Simon Forman
206f49598e
Add mod, gcd, and hypot; term_expansion for math ops.
2019-07-20 19:26:11 -07:00
Simon Forman
c4c6ece6d2
Add bool function to mimic Python semantics.
2019-07-16 08:41:28 -07:00
Simon Forman
06b81914eb
Change comparison ops to not use CLP(FD).
2019-07-15 23:02:08 -07:00
Simon Forman
2baf3b89ce
Minor cleanup of defs.
2019-07-15 20:55:11 -07:00
Simon Forman
9ebc64541a
Move all definitions to defs.txt.
2019-07-15 16:11:49 -07:00
Simon Forman
4fefc04da3
Load definitions from a file.
...
This paves the way to regularize the defs between Python and Prolog (and and future other) implementations.
2019-07-15 15:53:07 -07:00