Fixed :save & added new commands

This commit is contained in:
2022-11-07 19:02:27 -08:00
parent cf2d82acc6
commit ab682ef700
3 changed files with 46 additions and 10 deletions

View File

@@ -57,6 +57,8 @@ Lamb comes with a few commands. Prefix them with a `:`
`:mdel [macro]` Delete a macro
`:clearmacros` Delete all macros
`:save [filename]`\
`:load [filename]` Save or load the current environment to a file. The lines in a file look exactly the same as regular entries in the prompt, but must only contain macro definitions.
@@ -75,7 +77,6 @@ Lamb treats each λ expression as a binary tree. Variable binding and reduction
## Todo (pre-release, in this order):
- Fix :save
- Cleanup warnings
- Truncate long expressions in warnings
- Prevent macro-chaining recursion