Hi alex-coder,
To get ast for GO code in a json format you can try a web 
tool: https://astexplorer.net/
or
https://github.com/asty-org/asty

Thanks,
Vraj

On Thursday, June 15, 2023 at 9:31:54 AM UTC+5:30 alex-coder wrote:

> Xa, context is the king on a field :-)
>
> You gave a good sample, and I would like to get ast for GO code in a json 
> format for further processing.
>
>
> четверг, 15 июня 2023 г. в 01:45:20 UTC+3, ben...@gmail.com: 
>
>> Hi Alex, could you please give a bit more context about what language or 
>> kind of AST you're referring to, and what you mean by visualize? As Vraj 
>> mentioned, Graphviz is good for the general case. If you just want to 
>> "visualize" Go AST in a text format, you can use go/ast.Print: 
>> https://pkg.go.dev/go/a...@go1.20.5#Print 
>> <https://pkg.go.dev/go/ast@go1.20.5#Print>
>>
>> On Wednesday, June 14, 2023 at 9:14:37 AM UTC+12 alex-coder wrote:
>>
>>> Hi All !
>>>
>>> Could you please advice me a tool to visualize an ast graph.
>>>
>>> Thank you.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/21ad832f-d791-46df-8bf5-84b279212dc2n%40googlegroups.com.

Reply via email to