example01_syntaxtree.xml
来自「这是一个用java语言编写的小型C语言的语法分析器。」· XML 代码 · 共 41 行
XML
41 行
<?xml version="1.0"?>
<root>
<tree line="2" nodetype="ClassDecl" nodestring="MyError">
<child>
<tree line="3" nodetype="VarDecl" nodestring="data" vartype="int" modifier="private" isArray="0" />
<tree line="4" nodetype="FunDecl" nodestring="MyError" rettype="void" modifier="constructor">
<child>
<tree line="4" nodetype="Para" nodestring="msg" vartype="int" isArray="0" />
</child>
<child>
<tree line="6" nodetype="AssignStm" nodestring="=">
<child>
<tree line="6" nodetype="VarID" nodestring="data" isArray="0" />
</child>
<child>
<tree line="6" nodetype="VarID" nodestring="msg" isArray="0" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="10" nodetype="FunDecl" nodestring="f" rettype="void">
<child>
<tree line="12" nodetype="ThrowStm" nodestring="throw">
<child>
<tree line="12" nodetype="VarID" nodestring="MyError">
<child>
<tree line="12" nodetype="ConstID" nodestring="0" />
</child>
</tree>
</child>
</tree>
</child>
</tree>
<tree line="15" nodetype="FunDecl" nodestring="main" rettype="int">
<child>
<tree line="17" nodetype="FunCall" nodestring="f" />
</child>
</tree>
</root>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?