📄 prime2_syntaxtree.xml
字号:
<?xml version="1.0"?>
<root>
<tree line="1" nodetype="ClassDecl" nodestring="myClass">
<child>
<tree line="3" nodetype="VarDecl" nodestring="a" vartype="int" modifier="private" isArray="0" />
<tree line="4" nodetype="VarDecl" nodestring="b" vartype="int" modifier="private" isArray="0" />
<tree line="5" nodetype="VarDecl" nodestring="m" vartype="int" modifier="public" isArray="0" />
<tree line="6" nodetype="FunDecl" nodestring="myClass" modifier="constructor">
<child>
<tree line="6" nodetype="Para" nodestring="x" vartype="int" isArray="0" />
<tree line="6" nodetype="Para" nodestring="y" vartype="int" isArray="0" />
</child>
<child>
<tree line="8" nodetype="AssignStm" nodestring="=">
<child>
<tree line="8" nodetype="VarID" nodestring="m" isArray="0" />
</child>
<child>
<tree line="8" nodetype="ConstID" nodestring="0" />
</child>
</tree>
<tree line="9" nodetype="AssignStm" nodestring="=">
<child>
<tree line="9" nodetype="ThisStm" nodestring="this">
<child>
<tree line="9" nodetype="VarID" nodestring="a" />
</child>
</tree>
</child>
<child>
<tree line="9" nodetype="VarID" nodestring="x" isArray="0" />
</child>
</tree>
<tree line="10" nodetype="AssignStm" nodestring="=">
<child>
<tree line="10" nodetype="VarID" nodestring="b" isArray="0" />
</child>
<child>
<tree line="10" nodetype="VarID" nodestring="y" isArray="0" />
</child>
</tree>
</child>
</tree>
<tree line="12" nodetype="FunDecl" nodestring="add" rettype="int" modifier="public" isVirtual="1">
<child>
<tree line="14" nodetype="VarDecl" nodestring="z" vartype="int" modifier="" isArray="0" />
<tree line="15" nodetype="AssignStm" nodestring="=">
<child>
<tree line="15" nodetype="VarID" nodestring="z" isArray="0" />
</child>
<child>
<tree line="15" nodetype="ADD" nodestring="+">
<child>
<tree line="15" nodetype="VarID" nodestring="a" isArray="0" />
</child>
<child>
<tree line="15" nodetype="ThisStm" nodestring="this">
<child>
<tree line="15" nodetype="VarID" nodestring="b" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="16" nodetype="ReturnStm" nodestring="return">
<child>
<tree line="16" nodetype="VarID" nodestring="z" isArray="0" />
</child>
</tree>
</child>
</tree>
<tree line="18" nodetype="FunDecl" nodestring="~myClass" modifier="destructor" />
</child>
</tree>
<tree line="22" nodetype="FunDecl" nodestring="main" rettype="void">
<child>
<tree line="24" nodetype="VarDecl" nodestring="result" vartype="int" modifier="" isArray="0" />
<tree line="25" nodetype="VarDecl" nodestring="f" vartype="float" modifier="" isArray="0" />
<tree line="25" nodetype="VarDecl" nodestring="k" vartype="float" modifier="" isArray="0" />
<tree line="26" nodetype="AssignStm" nodestring="=">
<child>
<tree line="26" nodetype="VarID" nodestring="f" isArray="0" />
</child>
<child>
<tree line="26" nodetype="ConstID" nodestring="3.14" />
</child>
</tree>
<tree line="27" nodetype="AssignStm" nodestring="=">
<child>
<tree line="27" nodetype="VarID" nodestring="k" isArray="0" />
</child>
<child>
<tree line="27" nodetype="ADD" nodestring="+">
<child>
<tree line="27" nodetype="VarID" nodestring="f" isArray="0" />
</child>
<child>
<tree line="27" nodetype="ConstID" nodestring="5.31" />
</child>
</tree>
</child>
</tree>
<tree line="28" nodetype="VarDecl" nodestring="mc" vartype="myClass" modifier="" isArray="0" />
<tree line="29" nodetype="AssignStm" nodestring="=">
<child>
<tree line="29" nodetype="VarID" nodestring="mc" isArray="0" />
</child>
<child>
<tree line="29" nodetype="NewStm" nodestring="new">
<child>
<tree line="29" nodetype="FunCall" nodestring="myClass" isArray="0">
<child>
<tree line="29" nodetype="ConstID" nodestring="3" />
<tree line="29" nodetype="ConstID" nodestring="5" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="30" nodetype="AssignStm" nodestring="=">
<child>
<tree line="30" nodetype="VarID" nodestring="result" isArray="0" />
</child>
<child>
<tree line="30" nodetype="ObjectVar" nodestring="mc">
<child>
<tree line="30" nodetype="FunCall" nodestring="add" isArray="0" />
</child>
</tree>
</child>
</tree>
<tree line="31" nodetype="AssignStm" nodestring="=">
<child>
<tree line="31" nodetype="ObjectVar" nodestring="mc">
<child>
<tree line="31" nodetype="VarID" nodestring="m" isArray="0" />
</child>
</tree>
</child>
<child>
<tree line="31" nodetype="VarID" nodestring="result" isArray="0" />
</child>
</tree>
<tree line="32" nodetype="DeleteStm" nodestring="delete">
<child>
<tree line="32" nodetype="VarID" nodestring="mc" isArray="0" />
</child>
</tree>
<tree line="33" nodetype="ReturnStm" nodestring="return" />
</child>
</tree>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -