📄 exam3virtual_syntaxtree.xml
字号:
<?xml version="1.0"?>
<root>
<tree line="1" nodetype="ClassDecl" nodestring="shape">
<child>
<tree line="2" nodetype="VarDecl" nodestring="a" vartype="int" modifier="" isArray="0" />
<tree line="3" nodetype="FunDecl" nodestring="shape" rettype="void" modifier="constructor" />
<tree line="4" nodetype="FunDecl" nodestring="draw" rettype="void" isVirtual="1">
<child>
<tree line="4" nodetype="AssignStm" nodestring="=">
<child>
<tree line="4" nodetype="VarID" nodestring="a" isArray="0" />
</child>
<child>
<tree line="4" nodetype="ConstID" nodestring="0" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="6" nodetype="ClassDecl" nodestring="line">
<child>
<tree line="6" nodetype="BaseClsID" nodestring="shape" modifier="public" />
</child>
<child>
<tree line="7" nodetype="FunDecl" nodestring="line" rettype="void" modifier="constructor" />
<tree line="8" nodetype="FunDecl" nodestring="draw" rettype="void">
<child>
<tree line="8" nodetype="AssignStm" nodestring="=">
<child>
<tree line="8" nodetype="VarID" nodestring="a" isArray="0" />
</child>
<child>
<tree line="8" nodetype="ConstID" nodestring="1" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="10" nodetype="ClassDecl" nodestring="circle">
<child>
<tree line="10" nodetype="BaseClsID" nodestring="shape" modifier="public" />
</child>
<child>
<tree line="11" nodetype="FunDecl" nodestring="circle" rettype="void" modifier="constructor" />
<tree line="12" nodetype="FunDecl" nodestring="draw" rettype="void">
<child>
<tree line="12" nodetype="AssignStm" nodestring="=">
<child>
<tree line="12" nodetype="VarID" nodestring="a" isArray="0" />
</child>
<child>
<tree line="12" nodetype="ConstID" nodestring="2" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="14" nodetype="FunDecl" nodestring="foo" rettype="void">
<child>
<tree line="14" nodetype="Para" nodestring="s" vartype="shape" isArray="0" />
</child>
<child>
<tree line="15" nodetype="ObjectVar" nodestring="s">
<child>
<tree line="15" nodetype="FunCall" nodestring="draw" />
</child>
</tree>
</child>
</tree>
<tree line="17" nodetype="FunDecl" nodestring="main" rettype="void">
<child>
<tree line="18" nodetype="VarDecl" nodestring="s" vartype="shape" modifier="" isArray="0" />
<tree line="18" nodetype="VarDecl" nodestring="l" vartype="shape" modifier="" isArray="0" />
<tree line="18" nodetype="VarDecl" nodestring="c" vartype="shape" modifier="" isArray="0" />
<tree line="19" nodetype="AssignStm" nodestring="=">
<child>
<tree line="19" nodetype="VarID" nodestring="s" isArray="0" />
</child>
<child>
<tree line="19" nodetype="NewStm" nodestring="new">
<child>
<tree line="19" nodetype="FunCall" nodestring="shape" />
</child>
</tree>
</child>
</tree>
<tree line="20" nodetype="AssignStm" nodestring="=">
<child>
<tree line="20" nodetype="VarID" nodestring="l" isArray="0" />
</child>
<child>
<tree line="20" nodetype="NewStm" nodestring="new">
<child>
<tree line="20" nodetype="FunCall" nodestring="line" />
</child>
</tree>
</child>
</tree>
<tree line="21" nodetype="AssignStm" nodestring="=">
<child>
<tree line="21" nodetype="VarID" nodestring="c" isArray="0" />
</child>
<child>
<tree line="21" nodetype="NewStm" nodestring="new">
<child>
<tree line="21" nodetype="FunCall" nodestring="circle" />
</child>
</tree>
</child>
</tree>
<tree line="22" nodetype="FunCall" nodestring="foo">
<child>
<tree line="22" nodetype="VarID" nodestring="s" isArray="0" />
</child>
</tree>
<tree line="23" nodetype="FunCall" nodestring="foo">
<child>
<tree line="23" nodetype="VarID" nodestring="l" isArray="0" />
</child>
</tree>
<tree line="24" nodetype="FunCall" nodestring="foo">
<child>
<tree line="24" nodetype="VarID" nodestring="c" isArray="0" />
</child>
</tree>
</child>
</tree>
</root>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -