23 lines
593 B
Plaintext
23 lines
593 B
Plaintext
======= AST Display =========================
|
|
Package
|
|
ClassDeclList [1]
|
|
. ClassDecl
|
|
. "Foo" classname
|
|
. FieldDeclList [0]
|
|
. MethodDeclList [1]
|
|
. . (public) MethodDecl
|
|
. . VOID BaseType
|
|
. . "bar" methodname
|
|
. . ParameterDeclList [0]
|
|
. . StmtList [1]
|
|
. . . VarDeclStmt
|
|
. . . VarDecl
|
|
. . . ArrayType
|
|
. . . INT BaseType
|
|
. . . "newarr" varname
|
|
. . . NewArrayExpr
|
|
. . . INT BaseType
|
|
. . . LiteralExpr
|
|
. . . "20" IntLiteral
|
|
=============================================
|