Call these `NameVar` and `ResultVar`. More generally, in your entire code, you need to have a consistent notation for variables that represent variables in the generated program. For example, make them all end in `...Var`. And variables that represent *statements* or *expressions* of the generated program can end with `...Stat` and `...Expr`. And then don't give such a suffix to variables used by the logic of your code.

Such a convention will help the reading of your code *a lot*.

(In a statically typed language, the type of the variables would tell us that, and hovering with the mouse on a variable name in an IDE would show us the type. But in a dynamically typed language, we need such notations when dealing with variables and meta-variables.)