or you can use intVal, strVal, etc on literal nodes
    
    
    import macros
    
    macro initNui(a:int): typed =
      result = parseStmt("const b=" & $a.intVal)
    
    initNui(1)
    

Reply via email to