60 lines
2.4 KiB
Plaintext
60 lines
2.4 KiB
Plaintext
|
======= AST Display =========================
|
||
|
Package
|
||
|
ClassDeclList [1]
|
||
|
. ClassDecl
|
||
|
. "id" classname
|
||
|
. FieldDeclList [0]
|
||
|
. MethodDeclList [1]
|
||
|
. . (public) MethodDecl
|
||
|
. . VOID BaseType
|
||
|
. . "p" methodname
|
||
|
. . ParameterDeclList [0]
|
||
|
. . StmtList [1]
|
||
|
. . . VarDeclStmt
|
||
|
. . . VarDecl
|
||
|
. . . INT BaseType
|
||
|
. . . "x" varname
|
||
|
. . . BinaryExpr
|
||
|
. . . "||" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . "&&" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . "!=" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . "<=" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . "<" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . ">=" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . ">" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . "+" Operator
|
||
|
. . . LiteralExpr
|
||
|
. . . "1" IntLiteral
|
||
|
. . . BinaryExpr
|
||
|
. . . "/" Operator
|
||
|
. . . BinaryExpr
|
||
|
. . . "*" Operator
|
||
|
. . . LiteralExpr
|
||
|
. . . "2" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "3" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "4" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "5" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "6" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "7" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "8" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "9" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "0" IntLiteral
|
||
|
. . . LiteralExpr
|
||
|
. . . "1" IntLiteral
|
||
|
=============================================
|