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

📄 example05_syntaxtree.xml

📁 这是一个用java语言编写的小型C语言的语法分析器。
💻 XML
📖 第 1 页 / 共 2 页
字号:
                        <child>
                            <tree line="46" nodetype="VarID" nodestring="d" isArray="0" />
                        </child>
                        <child>
                            <tree line="46" nodetype="ConstID" nodestring="0" />
                        </child>
                    </tree>
                </child>
                <child>
                    <tree line="47" nodetype="ObjectVar" nodestring="me">
                        <child>
                            <tree line="47" nodetype="FunCall" nodestring="setData">
                                <child>
                                    <tree line="47" nodetype="ConstID" nodestring="0" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
                <child>
                    <tree line="49" nodetype="ThrowStm" nodestring="throw">
                        <child>
                            <tree line="49" nodetype="VarID" nodestring="ChildError">
                                <child>
                                    <tree line="49" nodetype="ConstID" nodestring="0" />
                                    <tree line="49" nodetype="ConstID" nodestring="1" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
            </tree>
        </child>
    </tree>
    <tree line="52" nodetype="FunDecl" nodestring="main" rettype="void">
        <child>
            <tree line="53" nodetype="VarDecl" nodestring="a" vartype="int" modifier="" isArray="0" />
            <tree line="54" nodetype="VarDecl" nodestring="b" vartype="int" modifier="" isArray="0" />
            <tree line="55" nodetype="VarDecl" nodestring="ce" vartype="ChildError" modifier="" isArray="0">
                <child>
                    <tree line="55" nodetype="ConstID" nodestring="4" />
                    <tree line="55" nodetype="ConstID" nodestring="5" />
                </child>
            </tree>
            <tree line="56" nodetype="TryStm" nodestring="try">
                <child>
                    <tree line="57" nodetype="AssignStm" nodestring="=">
                        <child>
                            <tree line="57" nodetype="VarID" nodestring="a" isArray="0" />
                        </child>
                        <child>
                            <tree line="57" nodetype="ObjectVar" nodestring="ce">
                                <child>
                                    <tree line="57" nodetype="FunCall" nodestring="getData" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                    <tree line="58" nodetype="AssignStm" nodestring="=">
                        <child>
                            <tree line="58" nodetype="VarID" nodestring="b" isArray="0" />
                        </child>
                        <child>
                            <tree line="58" nodetype="ObjectVar" nodestring="ce">
                                <child>
                                    <tree line="58" nodetype="FunCall" nodestring="getChilddata" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                    <tree line="59" nodetype="IfElseStm" nodestring="if">
                        <child>
                            <tree line="59" nodetype="RGT" nodestring="&gt;">
                                <child>
                                    <tree line="59" nodetype="VarID" nodestring="a" isArray="0" />
                                </child>
                                <child>
                                    <tree line="59" nodetype="VarID" nodestring="b" isArray="0" />
                                </child>
                            </tree>
                        </child>
                        <child>
                            <tree line="60" nodetype="ThrowStm" nodestring="throw">
                                <child>
                                    <tree line="60" nodetype="ConstID" nodestring="12" />
                                </child>
                            </tree>
                        </child>
                        <child>
                            <tree line="62" nodetype="ThrowStm" nodestring="throw">
                                <child>
                                    <tree line="62" nodetype="VarID" nodestring="ce" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
                <child>
                    <tree line="64" nodetype="CatchStm" nodestring="catch">
                        <child>
                            <tree line="64" nodetype="Para" nodestring="e" vartype="int" isArray="0" />
                        </child>
                        <child>
                            <tree line="66" nodetype="AssignStm" nodestring="=">
                                <child>
                                    <tree line="66" nodetype="VarID" nodestring="e" isArray="0" />
                                </child>
                                <child>
                                    <tree line="66" nodetype="ConstID" nodestring="0" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                    <tree line="68" nodetype="CatchStm" nodestring="catch">
                        <child>
                            <tree line="70" nodetype="AssignStm" nodestring="=">
                                <child>
                                    <tree line="70" nodetype="VarID" nodestring="a" isArray="0" />
                                </child>
                                <child>
                                    <tree line="70" nodetype="ConstID" nodestring="0" />
                                </child>
                            </tree>
                            <tree line="71" nodetype="AssignStm" nodestring="=">
                                <child>
                                    <tree line="71" nodetype="VarID" nodestring="b" isArray="0" />
                                </child>
                                <child>
                                    <tree line="71" nodetype="ConstID" nodestring="0" />
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
            </tree>
            <tree line="73" nodetype="AssignStm" nodestring="=">
                <child>
                    <tree line="73" nodetype="VarID" nodestring="a" isArray="0" />
                </child>
                <child>
                    <tree line="73" nodetype="ADD" nodestring="+">
                        <child>
                            <tree line="73" nodetype="VarID" nodestring="b" isArray="0" />
                        </child>
                        <child>
                            <tree line="73" nodetype="ConstID" nodestring="1" />
                        </child>
                    </tree>
                </child>
            </tree>
            <tree line="74" nodetype="TryStm" nodestring="try">
                <child>
                    <tree line="75" nodetype="FunCall" nodestring="f" />
                </child>
                <child>
                    <tree line="77" nodetype="CatchStm" nodestring="catch">
                        <child>
                            <tree line="77" nodetype="Para" nodestring="e" vartype="MyError" isArray="0" />
                        </child>
                        <child>
                            <tree line="79" nodetype="ObjectVar" nodestring="e">
                                <child>
                                    <tree line="79" nodetype="FunCall" nodestring="setData">
                                        <child>
                                            <tree line="79" nodetype="ConstID" nodestring="0" />
                                        </child>
                                    </tree>
                                </child>
                            </tree>
                        </child>
                    </tree>
                </child>
            </tree>
            <tree line="81" nodetype="AssignStm" nodestring="=">
                <child>
                    <tree line="81" nodetype="VarID" nodestring="a" isArray="0" />
                </child>
                <child>
                    <tree line="81" nodetype="SUB" nodestring="-">
                        <child>
                            <tree line="81" nodetype="VarID" nodestring="b" isArray="0" />
                        </child>
                        <child>
                            <tree line="81" nodetype="ConstID" nodestring="1" />
                        </child>
                    </tree>
                </child>
            </tree>
        </child>
    </tree>
</root>

⌨️ 快捷键说明

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