Thanks! That fixed the environment variable issue.
Another problem I ran into was using templates to parse lists of lists. I've made a small example to demonstrate the issue I'm running into.
If you try to compile the above gist using
patscc -c -o printlists_dats.o printlists.dats
The C compiler complains about the following line:
/*
emit_instr: loc0 = /Users/wdblair/tmp/printlists.dats: 437(line=33, offs=13) -- 454(line=33, offs=30)
*/
ATSINSmove_void(tmp3__2, PMVtmpltcstmat[0](print_t0ype<S2Eexi(n$8536$8538(13787); S2Eapp(S2Ecst(>=); S2Evar(n$8536$8538(13787)), S2Eintinf(0)); S2Eapp(S2Ecst(list); S2Ecst(itm), S2Evar(n$8536$8538(13787))))>)(tmp1__2)) ;
It seems that it isn't finding the implementation of print_t0ype<itmlst> given inside print_itmlstlst. Does it look like I am using templates incorrectly here?
Thanks,
Will