Adding information such as tolerance, location and range in parser.parse using flags -t--tolerane, -l--loc, and -r--range respectively and adding -c--callinfo this will add information to the start of the AST this is information for FunctionCall.
Why I need this:
Using Surya in a project to parse Solidity contract to JSON format and it would be great to have the option to see line numbers, ranges and information about function calls in the parsing of the contract to AST format.
Feature Description:
Adding information such as tolerance, location and range in
parser.parse
using flags-t
--tolerane
,-l
--loc
, and-r
--range
respectively and adding-c
--callinfo
this will add information to the start of the AST this is information forFunctionCall
.Why I need this:
Using Surya in a project to parse Solidity contract to JSON format and it would be great to have the option to see line numbers, ranges and information about function calls in the parsing of the contract to AST format.
Example usage 1:
Example output 1:
Example usage 2:
Example output 2: