Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Scilla's OCaml API more convenient to use #1096

Open
anton-trunov opened this issue Jul 18, 2022 · 0 comments
Open

Make Scilla's OCaml API more convenient to use #1096

anton-trunov opened this issue Jul 18, 2022 · 0 comments

Comments

@anton-trunov
Copy link
Contributor

anton-trunov commented Jul 18, 2022

We've been developing a number of tools using Scilla as an OCaml library and this experience has showing that we need to create more convenient OCaml API. For example,

  • a function that takes a file name and library path and outputs a typed ASTs;
  • a function that takes a procedure name (identifier) and returns the corresponding contract component;
  • a function that takes an identifier and returns its type.

Right now we use something like this to get types / locations:

    let check_typ_warn s =
      let t = (ER.get_type (get_rep s)).tp in
      let lc = ER.get_loc (get_rep s) in
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant