You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
When evaluating Ergo, it would be nice to have the option to print the result in Ergo syntax. Currently it uses JSON which does provide the information but can be a bit confusing since this is more like a serialization syntax.
This can be best illustrated with the REPL.
For:
$ ./bin/ergotop ./examples/helloworld/model.cto ./examples/helloworld/logic.ergo
Welcome to ERGOTOP version 0.1.3
ergo$ import org.accordproject.helloworld.*
ergo$ set contract HelloWorld over TemplateModel{ name : "Tigger" }
ergo$ call helloworld(Request{ input : "Foorest" });
Response. {"type": ["org.accordproject.helloworld.Response"], "data": {"output": "Hello Tigger (Foorest)"}}
When evaluating Ergo, it would be nice to have the option to print the result in Ergo syntax. Currently it uses JSON which does provide the information but can be a bit confusing since this is more like a serialization syntax.
This can be best illustrated with the REPL.
For:
The response could be written as:
or
For:
The response could be written as:
For:
The response could be written as:
For:
The response could be written as:
(Or whichever syntax we use for an empty optional -- See discussion in #321)
The text was updated successfully, but these errors were encountered: