this example links both libxatsopt and libxjsonize to xinterp for jsonizing the the tree of the interpreter
Later versions can suite specific needs however, for now the jsonized output is currently meant to be as verbose as possible with the exception of location information (coming soon!). Also, the labify branch provides a flatter representation than the master branch.
Learn about each translation phase of the ats3 compiler
Export AST to write extensions in any programming language you wish. (some examples soon!)
Something else you think ofentirely??
Personally, reading through the AST in json form has helped me tremendously with understanding the compilation phases of ats3. I hope you find it useful as well!
Cheers!
rodol
unread,
Dec 27, 2019, 1:54:36 AM12/27/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ats-lang-users
Awesome! Will definitely be reading and trying it out :)
Are there plans to support the reverse operation? To transform json to ATS3 ASTs?
gmhwxi
unread,
Dec 27, 2019, 10:58:40 AM12/27/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ats-lang-users
Yes. And also to other languages such as Python, JS, etc. for, say,