Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

REPL for Ergo #25

Closed
jeromesimeon opened this issue Mar 9, 2018 · 1 comment
Closed

REPL for Ergo #25

jeromesimeon opened this issue Mar 9, 2018 · 1 comment

Comments

@jeromesimeon
Copy link
Member

jeromesimeon commented Mar 9, 2018

We should provide a read-eval-print-loop for Ergo. This is useful for learning the language.

@jeromesimeon
Copy link
Member Author

Some ideas for what the REPL could provide:

  • Load existing Ergo files and CTOs and provide interactive loop
  • Interactive execution:
    • Execute expressions and return results
    • Execute/test contracts with multiple parameters
    • Instantiate contract with its variables
    • Initialize a contract state
    • Calling a contract clause
    • Send a request to a contract
    • Respond with Error or Response + State + Emit
  • Batch execution
    • Execute from a file
    • Use as test harness (e.g., as series of enforce?) to replace the smoke test (examples/smoke)
  • Contract composition
    • Create a contract from multiple stand-alone clauses (e.g., new Contract{ } with clause1, clause 2

@kach kach closed this as completed Aug 3, 2018
@kach kach moved this from In progress to Done in REPL Aug 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
REPL
  
Done
Development

No branches or pull requests

2 participants