27 lines
735 B
Plaintext
27 lines
735 B
Plaintext
|
======= AST Display =========================
|
||
|
Package
|
||
|
ClassDeclList [1]
|
||
|
. ClassDecl
|
||
|
. "A" classname
|
||
|
. FieldDeclList [0]
|
||
|
. MethodDeclList [1]
|
||
|
. . (public) MethodDecl
|
||
|
. . INT BaseType
|
||
|
. . "f" methodname
|
||
|
. . ParameterDeclList [0]
|
||
|
. . StmtList [1]
|
||
|
. . . AssignStmt
|
||
|
. . . IdRef
|
||
|
. . . "x" Identifier
|
||
|
. . . BinaryExpr
|
||
|
. . . "*" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . "+" Operator
|
||
|
. . . LiteralExpr
|
||
|
. . . "1" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "2" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "3" IntLiteral
|
||
|
=============================================
|