{"repo":"ConsenSysDiligence/solc-typed-ast","free":true,"listed":false,"github":"https://github.com/ConsenSysDiligence/solc-typed-ast","clone":"git clone https://github.com/ConsenSysDiligence/solc-typed-ast.git","description":"A TypeScript package providing a normalized typed Solidity AST along with the utilities necessary to generate the AST (from Solc) and traverse/manipulate it.","language":"TypeScript","stars":138,"topics":["solidity","ast","typescript"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"solc-typed-ast A TypeScript package providing a normalized typed Solidity AST along with the utilities necessary to generate the AST (from Solc) and traverse/manipulate it. Features - Various Solidity compiler versions support, starting from 0.4.13 . - Various compiler selection strategies, including compiler auto-detection via pragma solidity directives in Solidity sources with possible fallback options. - Interaction with AST nodes, using type definitions. - Compensation of differences between legacy and compact Solidity AST. - Referenced AST nodes linking. - Easy tree traversal with siblings, parent/children relations, recursive walks and node selection via custom predicates. - XPath AST traversal (based on jSel package). - Generating the source code from the AST. Installation Package could be installed globally via following command: Also it can be installed as the dependency: Usage Easy compiling The package introduces easy and universal compiler invocation. Starting with Solidity 0.4.13 , source compilation could be done universally: The second argument with the \"auto\" value specifies a compiler selection strategy. If \"auto\" is specified and source code contains valid pragma solidity directive, then compiler version will be automatically picked from it. If compile process will not succeed, the execution will fall back to \"compiler guessing\" : trying to compile source with a few different versions of the new and old Solidity compilers. The other option would be to specif","default_branch":null,"files":null,"tree":[],"storefront":"/r/ConsenSysDiligence","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ConsenSysDiligence/solc-typed-ast/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}