You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a way (now) after some work I did late last year. It's not documented and may yet be removed. Look at the procedure Progend in .../uni/unicon/unigram.y for details.
This is a special case, isn't it? Not only it happens after the big inhale but it's hidden behind yacc. That most likely means there is no way to use this in a normal Unicon program. Or is there? It might be difficult to replicate because there is a lot of magic from x1 to classes.
As of 24th March, there is now a -printAST option in the compiler. To get access to the AST from a normal Unicon program you could run the compiler in a child process and capture the standard output.
Activity
Don-Ward commentedon Feb 3, 2025
There is a way (now) after some work I did late last year. It's not documented and may yet be removed. Look at the procedure
Progendin .../uni/unicon/unigram.yfor details.IanTrudel commentedon Feb 26, 2025
This is a special case, isn't it? Not only it happens after the big inhale but it's hidden behind yacc. That most likely means there is no way to use this in a normal Unicon program. Or is there? It might be difficult to replicate because there is a lot of magic from x1 to classes.
Don-Ward commentedon Apr 9, 2025
As of 24th March, there is now a -printAST option in the compiler. To get access to the AST from a normal Unicon program you could run the compiler in a child process and capture the standard output.
IanTrudel commentedon Apr 9, 2025
Thank you! I'm looking forward trying this new feature.