Open ninegua opened 8 years ago
Besides name sanity (mentioned above), there are several other improvements that should be made:
from_root_entry
and from_root_noentry
) due to its use of global variables.+1 to prefixing and all 3 above. Better to create an environment (or a stack of environments, not sure) and pass it around.
Currently CGen produces C program using identifier names that come from Julia without much modification. However, there could be potential conflict with existing identifiers or keywords in C, or with temporary C variables produced in CGen itself. I suggest we add a prefix (e.g., underscore) to all names that come from Julia into C.