32 lines
830 B
Plaintext
32 lines
830 B
Plaintext
|
======= AST Display =========================
|
||
|
Package
|
||
|
ClassDeclList [1]
|
||
|
. ClassDecl
|
||
|
. "id" classname
|
||
|
. FieldDeclList [0]
|
||
|
. MethodDeclList [1]
|
||
|
. . (public) MethodDecl
|
||
|
. . VOID BaseType
|
||
|
. . "p" methodname
|
||
|
. . ParameterDeclList [0]
|
||
|
. . StmtList [2]
|
||
|
. . . VarDeclStmt
|
||
|
. . . VarDecl
|
||
|
. . . INT BaseType
|
||
|
. . . "x" varname
|
||
|
. . . UnaryExpr
|
||
|
. . . "-" Operator
|
||
|
. . . RefExpr
|
||
|
. . . IdRef
|
||
|
. . . "b" Identifier
|
||
|
. . . VarDeclStmt
|
||
|
. . . VarDecl
|
||
|
. . . BOOLEAN BaseType
|
||
|
. . . "y" varname
|
||
|
. . . UnaryExpr
|
||
|
. . . "!" Operator
|
||
|
. . . RefExpr
|
||
|
. . . IdRef
|
||
|
. . . "y" Identifier
|
||
|
=============================================
|