PistonDevelopers / dyon

A rusty dynamically typed scripting language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dyon REPL Design

bvssvni opened this issue · 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.