brownplt / pyret-lang

The Pyret language.
Other
1.07k stars 109 forks source link

include doesn't work inside compiler #1275

Closed sorawee closed 6 years ago

sorawee commented 6 years ago

I include file('ast-transformer.arr') but Pyret doesn't seem to recognize ids that are in the module. If I use import, there's no error. Also note that I used to use include file before when grading 173 and there seems to be no problem.

jpolitz commented 6 years ago

I can't reproduce this. If I change e.g. import file("js-ast.arr") ... to include file("js-ast.arr") I don't get an error at the module-finding phase. Where did you put the include/import?

sorawee commented 6 years ago

Seems to work to me now. I might have been hallucinating.