35 lines
924 B
Plaintext
35 lines
924 B
Plaintext
|
======= AST Display =========================
|
||
|
Package
|
||
|
ClassDeclList [1]
|
||
|
. ClassDecl
|
||
|
. "Test" classname
|
||
|
. FieldDeclList [0]
|
||
|
. MethodDeclList [1]
|
||
|
. . (public) MethodDecl
|
||
|
. . VOID BaseType
|
||
|
. . "p" methodname
|
||
|
. . ParameterDeclList [1]
|
||
|
. . . ParameterDecl
|
||
|
. . . INT BaseType
|
||
|
. . . "a"parametername
|
||
|
. . StmtList [2]
|
||
|
. . . VarDeclStmt
|
||
|
. . . VarDecl
|
||
|
. . . ClassType
|
||
|
. . . "C" classname
|
||
|
. . . "c" varname
|
||
|
. . . NewObjectExpr
|
||
|
. . . ClassType
|
||
|
. . . "C" classname
|
||
|
. . . CallStmt
|
||
|
. . . QualifiedRef
|
||
|
. . . "p" Identifier
|
||
|
. . . IdRef
|
||
|
. . . "c" Identifier
|
||
|
. . . ExprList [2]
|
||
|
. . . . LiteralExpr
|
||
|
. . . . "2" IntLiteral
|
||
|
. . . . LiteralExpr
|
||
|
. . . . "3" IntLiteral
|
||
|
=============================================
|