Skip to content

Separate a kernel for calculations from the REPL logic #21

@dvberkel

Description

@dvberkel

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

  1. Try to gobble up the input until a colon (:, or ::) or semi-colon (;).
  2. Try to make sense of the collected input, when it is a command
  3. Try to make sense of the command and execute it.
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions