Skip to content

Release - v3.0.0

Compare
Choose a tag to compare
@frossm frossm released this 31 Oct 15:27
· 177 commits to master since this release

Release Notes

The main change in this version is I've added the ability to create User Defined Functions (UDF). You can turn on recording, execute number entries and commands, and then save this so it can be executed in the future. Only what you enter on the command line, including numbers, will be saved to the UDF.

Undo u will also allow you to undo each command in the UDF. These functions are stored in the java preferences system. Please be very careful if you edit them directly. The parser expects the FunctionSteps to have the total number of commands and the Step syntax to be as generated.

Command Description
list func Show a list of the saved user defined functions
record on Turn on recording. Most commands and numbers entered after record is enabled will be saved
record off Turn off recording. The user will be prompted to enter in a name of this function and that name will be used to run it in the future. If you do not enter in a name the recording is canceled and nothing will be saved
func del NAME Delete a saved function. The name must match the one given when saved. A list of functions can be viewed with list func
func run Execute the saved user defined function with the current stack as the starting point

This required quite a bit of code reorganization and I've tested to ensure there are no bugs, but there very well may be some. Please let me know in the issue tab if you find any.

Secondly, I did fix a bug with mod if there was only one argument. The program would crash, but now you'll just see an error message.