Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Conversation

@jjcnn
Copy link
Contributor

@jjcnn jjcnn commented Oct 20, 2020

Gas charge AST nodes refer to program variables, so they need to use Name.t (for an appropriate Name struct) instead of string. This means that they need to be disambiguated.

Most of the code in this PR is entirely brain-dead boilerplate, except for the small change in EvalUtil.ml. The use of gas charge nodes introduces an extra dependency between Gas.ml and Syntax.ml, which makes it impossible to use different syntax structs in EvalUtil.ml and Gas.ml. I have solved this by setting EvalSyntax = Gas.GasSyntax, which I think makes sense since we would expect to charge gas based on the syntax being evaluated.

I worry that this will stop working on my current disambiguation branch, but I'll find out when I merge master to that branch.

@jjcnn jjcnn merged commit 32f7572 into master Oct 20, 2020
@anton-trunov anton-trunov deleted the disambiguate_gas_charge branch August 9, 2022 13:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants