⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 excep_syntaxtree.xml

📁 这是一个用java语言编写的小型C语言的语法分析器。
💻 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="c" 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="c" 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="IfStm" nodestring="if">
                        <child>
                            <tree line="12" nodetype="RNEQ" nodestring="!=">
                                <child>
                                    <tree line="12" nodetype="VarID" nodestring="b" isArray="0" />
                                </child>
                                <child>
                                    <tree line="12" nodetype="ConstID" nodestring="0" />
                                </child>
                            </tree>
                        </child>
                        <child>
                            <tree line="13" nodetype="ThrowStm" nodestring="throw">
                                <child>
                                    <tree line="13" nodetype="VarID" nodestring="Ball">
                                        <child>
                                            <tree line="13" nodetype="VarID" nodestring="b" isArray="0" />
                                        </child>
                                    </tree>
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
            </tree>
            <tree line="15" nodetype="FunDecl" nodestring="Botch" rettype="void" modifier="public">
                <child>
                    <tree line="17" nodetype="AssignStm" nodestring="=">
                        <child>
                            <tree line="17" nodetype="VarID" nodestring="b" isArray="0" />
                        </child>
                        <child>
                            <tree line="17" nodetype="ConstID" nodestring="0" />
                        </child>
                    </tree>
                </child>
            </tree>
            <tree line="19" nodetype="FunDecl" nodestring="setX" rettype="void" modifier="public">
                <child>
                    <tree line="19" nodetype="Para" nodestring="x" 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="VarID" nodestring="x" isArray="0" />
                        </child>
                    </tree>
                </child>
            </tree>
        </child>
    </tree>
    <tree line="25" nodetype="FunDecl" nodestring="main" rettype="void">
        <child>
            <tree line="27" nodetype="VarDecl" nodestring="ball" vartype="Ball" modifier="" isArray="0">
                <child>
                    <tree line="27" nodetype="ConstID" nodestring="2" />
                    <tree line="27" nodetype="ConstID" nodestring="3" />
                </child>
            </tree>
            <tree line="29" nodetype="TryStm" nodestring="try">
                <child>
                    <tree line="30" nodetype="ObjectVar" nodestring="ball">
                        <child>
                            <tree line="30" nodetype="FunCall" nodestring="TestEX" />
                        </child>
                    </tree>
                </child>
                <child>
                    <tree line="32" nodetype="CatchStm" nodestring="catch">
                        <child>
                            <tree line="32" nodetype="Para" nodestring="ex" vartype="Ball" isArray="0" />
                        </child>
                        <child>
                            <tree line="34" nodetype="ObjectVar" nodestring="ex">
                                <child>
                                    <tree line="34" nodetype="FunCall" nodestring="Botch" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                    <tree line="36" nodetype="CatchStm" nodestring="catch">
                        <child>
                            <tree line="36" nodetype="Para" nodestring="i" vartype="int" isArray="0" />
                        </child>
                        <child>
                            <tree line="38" nodetype="AssignStm" nodestring="=">
                                <child>
                                    <tree line="38" nodetype="VarID" nodestring="i" isArray="0" />
                                </child>
                                <child>
                                    <tree line="38" nodetype="ConstID" nodestring="0" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                    <tree line="40" nodetype="CatchStm" nodestring="catch">
                        <child>
                            <tree line="42" nodetype="ObjectVar" nodestring="ball">
                                <child>
                                    <tree line="42" nodetype="FunCall" nodestring="Botch" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
            </tree>
            <tree line="44" nodetype="ObjectVar" nodestring="ball">
                <child>
                    <tree line="44" nodetype="FunCall" nodestring="setX">
                        <child>
                            <tree line="44" nodetype="ConstID" nodestring="0" />
                        </child>
                    </tree>
                </child>
            </tree>
            <tree line="45" nodetype="TryStm" nodestring="try">
                <child>
                    <tree line="46" nodetype="ObjectVar" nodestring="ball">
                        <child>
                            <tree line="46" nodetype="FunCall" nodestring="TestEX" />
                        </child>
                    </tree>
                    <tree line="47" nodetype="TryStm" nodestring="try">
                        <child>
                            <tree line="48" nodetype="ObjectVar" nodestring="ball">
                                <child>
                                    <tree line="48" nodetype="FunCall" nodestring="setX">
                                        <child>
                                            <tree line="48" nodetype="ConstID" nodestring="7" />
                                        </child>
                                    </tree>
                                </child>
                            </tree>
                            <tree line="49" nodetype="ObjectVar" nodestring="ball">
                                <child>
                                    <tree line="49" nodetype="FunCall" nodestring="TestEX" />
                                </child>
                            </tree>
                        </child>
                        <child>
                            <tree line="51" nodetype="CatchStm" nodestring="catch">
                                <child>
                                    <tree line="51" nodetype="Para" nodestring="i" vartype="int" isArray="0" />
                                </child>
                                <child>
                                    <tree line="53" nodetype="AssignStm" nodestring="=">
                                        <child>
                                            <tree line="53" nodetype="VarID" nodestring="i" isArray="0" />
                                        </child>
                                        <child>
                                            <tree line="53" nodetype="ConstID" nodestring="0" />
                                        </child>
                                    </tree>
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
                <child>
                    <tree line="56" nodetype="CatchStm" nodestring="catch">
                        <child>
                            <tree line="58" nodetype="ObjectVar" nodestring="ball">
                                <child>
                                    <tree line="58" nodetype="FunCall" nodestring="Botch" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
            </tree>
        </child>
    </tree>
</root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -