language-python icon indicating copy to clipboard operation
language-python copied to clipboard

Feature Request: Add helper functions to construct Common.AST

Open MarisaKirisame opened this issue 6 years ago • 0 comments

I am trying to compile a DSL into python, and I found using this easier than manipulating string or doc myself. However, it is still very cumbersome with all those annotation flying around (when I construct the AST, I want anno to be ()). Another problem is, there is an expr_literal field in Float/Int, and it is the field that guide the pretty print (instead of the literal value). so this make it harder to generate floating point literal in python.

MarisaKirisame avatar Sep 18 '19 09:09 MarisaKirisame