nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
compile: add 'Program' class to represent a nit program
[nit.git]
/
src
/
nitc.nit
diff --git
a/src/nitc.nit
b/src/nitc.nit
index
debc63e
..
08a44c2
100644
(file)
--- a/
src/nitc.nit
+++ b/
src/nitc.nit
@@
-19,6
+19,7
@@
package nitc
import abstracttool
import analysis
+import program
private import compiling
private import syntax
@@
-124,9
+125,9
@@
special AbstractCompiler
dump_intermediate_code(mods)
end
for mod in mods do
- mod.compile_prog_to_c(self)
+ var p = new Program(mod)
+ p.compile_prog_to_c(self)
end
-
end
end