======= AST Display ========================= Package ClassDeclList [3] . ClassDecl . "A" classname . FieldDeclList [0] . MethodDeclList [0] . ClassDecl . "B" classname . FieldDeclList [3] . . (private) FieldDecl . . ArrayType . . INT BaseType . . "v" fieldname . . (public) FieldDecl . . ClassType . . "C" classname . . "c" fieldname . . (private) FieldDecl . . INT BaseType . . "x" fieldname . MethodDeclList [1] . . (public) MethodDecl . . VOID BaseType . . "foo" methodname . . ParameterDeclList [2] . . . ParameterDecl . . . INT BaseType . . . "a"parametername . . . ParameterDecl . . . ClassType . . . "B" classname . . . "other"parametername . . StmtList [0] . ClassDecl . "C" classname . FieldDeclList [1] . . (private) FieldDecl . . BOOLEAN BaseType . . "b" fieldname . MethodDeclList [1] . . (public) MethodDecl . . ArrayType . . INT BaseType . . "tryit" methodname . . ParameterDeclList [0] . . StmtList [1] . . . VarDeclStmt . . . VarDecl . . . INT BaseType . . . "x" varname . . . UnaryExpr . . . "-" Operator . . . UnaryExpr . . . "-" Operator . . . RefExpr . . . IdRef . . . "x" Identifier . . NewArrayExpr . . INT BaseType . . LiteralExpr . . "20" IntLiteral =============================================