The entry point of Walnut is the class Main.Prover
Currently the parsing of the walnut expression and the resulting calculation are tightly coupled. Basically the following tight loop is run
- Try to gobble up the input until a colon (
:, or ::) or semi-colon (;).
- Try to make sense of the collected input, when it is a command
- Try to make sense of the command and execute it.
- Return to gobbling up input.
Error handling for all this types is interwoven with the code.
I would like to see a clear separation between the following responsibilities
- Fascilitating a proper Read-Eval-Print Loop (REPL).
- Have proper parser for commands.
- Kernel for calculations.
The entry point of Walnut is the class
Main.ProverCurrently the parsing of the walnut expression and the resulting calculation are tightly coupled. Basically the following tight loop is run
:, or::) or semi-colon (;).Error handling for all this types is interwoven with the code.
I would like to see a clear separation between the following responsibilities