Solidity: Implement Solidity AST printer

Created on 25 Apr 2017  路  9Comments  路  Source: ethereum/solidity

This would take the internal AST structure and return a "Solidity source code output" which can be parsed by the parser.

This can also be used by the "import AST from JSON" feature (see #2096) to create the hash of the sourcecode that is part of the onchain metadata.

feature

Most helpful comment

Did you mean being able to convert AST to Solidity source code?

Yes.

All 9 comments

What about just including the hash of the source code into the AST?

May I know how this feature is going? I think this would be useful. I realize that there are some source code files look related.

I think this is implemented already. The AST printer can be used via CLI argument like --ast-json.

@axic could you clarify the meaning of this issue, please?

It says it in the description:

To print parseable Solidity source code.

@axic Did you mean being able to convert AST to Solidity source code?

Did you mean being able to convert AST to Solidity source code?

Yes.

Any update here? I think this is very useful.

@axic Did you mean being able to convert AST to Solidity source code?

Any updates? I am trying to do this.

Was this page helpful?
0 / 5 - 0 ratings