36 lines
962 B
Plaintext
36 lines
962 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]
|
|
. . . CallStmt
|
|
. . . QualifiedRef
|
|
. . . "p" Identifier
|
|
. . . ThisRef
|
|
. . . ExprList [2]
|
|
. . . . LiteralExpr
|
|
. . . . "2" IntLiteral
|
|
. . . . LiteralExpr
|
|
. . . . "3" IntLiteral
|
|
. . . AssignStmt
|
|
. . . IndexedRef
|
|
. . . LiteralExpr
|
|
. . . "3" IntLiteral
|
|
. . . QualifiedRef
|
|
. . . "v" Identifier
|
|
. . . IdRef
|
|
. . . "a" Identifier
|
|
. . . LiteralExpr
|
|
. . . "4" IntLiteral
|
|
=============================================
|