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

Allow qualified names for function calls, variable access, contract instantiation #465

Closed
3 tasks done
jeromesimeon opened this issue Sep 29, 2018 · 1 comment
Closed
3 tasks done
Assignees
Labels

Comments

@jeromesimeon
Copy link
Member

jeromesimeon commented Sep 29, 2018

At the moment, only type/new objects get parsed as (possibly) qualified names. All functions, contracts and constant should be resolved qualified names and imported.

  • Functions
  • Contracts
  • Constants
@jeromesimeon jeromesimeon self-assigned this Sep 29, 2018
@jeromesimeon
Copy link
Member Author

jeromesimeon commented Sep 30, 2018

In PR #466

$ ./bin/ergotop examples/helloworld/model.cto examples/helloworld/logic.ergo examples/promissory-note/money.ergo 
Welcome to ERGOTOP version 0.4.3
ergo$ set contract ~org.accordproject.helloworld.HelloWorld over ~org.accordproject.helloworld.TemplateModel{ name : "Fred Blogs" }
ergo$ return ~org.accordproject.ergo.money.compoundInterestMultiple(3.5, 100.0)
Response. 1.50994918677 : Double

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant