dyon icon indicating copy to clipboard operation
dyon copied to clipboard

Dyon REPL Design

Open bvssvni opened this issue 1 year ago • 0 comments

Dyon has a REPL environment using the "dyon" example.

To install:

cargo install --example dyon dyon

To run:

dyon

This should produce a prompt where one can type help for more information:

=== Dyon 0.48 ===
Type `help` for more information.
> 
  • Designed to reflect editing of normal Dyon source files
  • Save and load file
  • Import modules to use as dependency (reloads the context)
  • This design does not allocate memory upon loading of modules

Some limitations:

  • Can not declare variables, e.g. a := 3. Instead use a() = 3.
  • Imported modules can not depend on each other. Instead, use a loader script.

bvssvni avatar Sep 10 '23 13:09 bvssvni