📄 ball_syntaxtree.xml
字号:
<?xml version="1.0"?>
<root>
<tree line="1" nodetype="ClassDecl" nodestring="Ball">
<child>
<tree line="3" nodetype="VarDecl" nodestring="b" vartype="int" modifier="private" isArray="0" />
<tree line="4" nodetype="VarDecl" nodestring="size" vartype="int" modifier="private" isArray="0" />
<tree line="5" nodetype="FunDecl" nodestring="Ball" rettype="void" modifier="constructor">
<child>
<tree line="5" nodetype="Para" nodestring="x" vartype="int" isArray="0" />
<tree line="5" nodetype="Para" nodestring="y" vartype="int" isArray="0" />
</child>
<child>
<tree line="7" nodetype="AssignStm" nodestring="=">
<child>
<tree line="7" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="7" nodetype="VarID" nodestring="x" isArray="0" />
</child>
</tree>
<tree line="8" nodetype="AssignStm" nodestring="=">
<child>
<tree line="8" nodetype="VarID" nodestring="size" isArray="0" />
</child>
<child>
<tree line="8" nodetype="VarID" nodestring="y" isArray="0" />
</child>
</tree>
</child>
</tree>
<tree line="10" nodetype="FunDecl" nodestring="TestEX" rettype="void" modifier="public">
<child>
<tree line="12" nodetype="VarDecl" nodestring="ex" vartype="int" modifier="" isArray="0" />
<tree line="13" nodetype="AssignStm" nodestring="=">
<child>
<tree line="13" nodetype="VarID" nodestring="ex" isArray="0" />
</child>
<child>
<tree line="13" nodetype="ConstID" nodestring="0" />
</child>
</tree>
<tree line="14" nodetype="TryStm" nodestring="try">
<child>
<tree line="15" nodetype="IfStm" nodestring="if">
<child>
<tree line="15" nodetype="REQ" nodestring="==">
<child>
<tree line="15" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="15" nodetype="ConstID" nodestring="2" />
</child>
</tree>
</child>
<child>
<tree line="16" nodetype="ThrowStm" nodestring="throw">
<child>
<tree line="16" nodetype="VarID" nodestring="ex" />
</child>
</tree>
</child>
</tree>
<tree line="17" nodetype="AssignStm" nodestring="=">
<child>
<tree line="17" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="17" nodetype="ADD" nodestring="+">
<child>
<tree line="17" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="17" nodetype="ConstID" nodestring="1" />
</child>
</tree>
</child>
</tree>
</child>
<child>
<tree line="19" nodetype="CatchStm" nodestring="catch">
<child>
<tree line="19" nodetype="Para" nodestring="e" vartype="int" isArray="0" />
</child>
<child>
<tree line="21" nodetype="AssignStm" nodestring="=">
<child>
<tree line="21" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="21" nodetype="ConstID" nodestring="0" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="24" nodetype="FunDecl" nodestring="Increase" rettype="void" modifier="public" isVirtual="1">
<child>
<tree line="26" nodetype="AssignStm" nodestring="=">
<child>
<tree line="26" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="26" nodetype="ADD" nodestring="+">
<child>
<tree line="26" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="26" nodetype="ConstID" nodestring="1" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="28" nodetype="FunDecl" nodestring="size" rettype="int" modifier="public" isVirtual="1">
<child>
<tree line="30" nodetype="ReturnStm" nodestring="return">
<child>
<tree line="30" nodetype="VarID" nodestring="size" isArray="0" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="33" nodetype="ClassDecl" nodestring="basketBall">
<child>
<tree line="33" nodetype="BaseClsID" nodestring="Ball" modifier="public" />
</child>
<child>
<tree line="35" nodetype="FunDecl" nodestring="basketBall" rettype="void" modifier="constructor" />
<tree line="38" nodetype="FunDecl" nodestring="size" rettype="int" modifier="public">
<child>
<tree line="40" nodetype="VarDecl" nodestring="bsize" vartype="int" modifier="" isArray="0" />
<tree line="41" nodetype="AssignStm" nodestring="=">
<child>
<tree line="41" nodetype="VarID" nodestring="bsize" isArray="0" />
</child>
<child>
<tree line="41" nodetype="ADD" nodestring="+">
<child>
<tree line="41" nodetype="VarID" nodestring="size" isArray="0" />
</child>
<child>
<tree line="41" nodetype="ConstID" nodestring="2" />
</child>
</tree>
</child>
</tree>
<tree line="42" nodetype="ReturnStm" nodestring="return">
<child>
<tree line="42" nodetype="VarID" nodestring="bsize" isArray="0" />
</child>
</tree>
</child>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -