35 lines
959 B
Plaintext
35 lines
959 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 [1]
|
|
. . . AssignStmt
|
|
. . . IndexedRef
|
|
. . . BinaryExpr
|
|
. . . "+" Operator
|
|
. . . RefExpr
|
|
. . . IdRef
|
|
. . . "a" Identifier
|
|
. . . LiteralExpr
|
|
. . . "1" IntLiteral
|
|
. . . IdRef
|
|
. . . "Test" Identifier
|
|
. . . BinaryExpr
|
|
. . . "*" Operator
|
|
. . . RefExpr
|
|
. . . IdRef
|
|
. . . "a" Identifier
|
|
. . . LiteralExpr
|
|
. . . "3" IntLiteral
|
|
=============================================
|