======= AST Display ========================= Package ClassDeclList [1] . ClassDecl . "A" classname . FieldDeclList [0] . MethodDeclList [1] . . (public) MethodDecl . . VOID BaseType . . "p" methodname . . ParameterDeclList [0] . . StmtList [1] . . . VarDeclStmt . . . VarDecl . . . INT BaseType . . . "a" varname . . . BinaryExpr . . . "+" Operator . . . CallExpr . . . IndexedRef . . . LiteralExpr . . . "4" IntLiteral . . . QualifiedRef . . . "y" Identifier . . . IndexedRef . . . LiteralExpr . . . "3" IntLiteral . . . IdRef . . . "x" Identifier . . . ExprList + [2] . . . . RefExpr . . . . IdRef . . . . "z" Identifier . . . . LiteralExpr . . . . "5" IntLiteral . . . LiteralExpr . . . "2" IntLiteral =============================================