Support "import".

This commit is contained in:
Wilson Snyder
2009-11-09 19:07:59 -05:00
parent 8a55c6fd9f
commit 3b39c3391d
9 changed files with 104 additions and 8 deletions
+4
View File
@@ -403,6 +403,10 @@ void AstNodeModule::dump(ostream& str) {
if (modPublic()) str<<" [P]";
if (inLibrary()) str<<" [LIB]";
}
void AstPackageImport::dump(ostream& str) {
this->AstNode::dump(str);
str<<" -> "<<packagep();
}
void AstVarScope::dump(ostream& str) {
this->AstNode::dump(str);
if (isCircular()) str<<" [CIRC]";