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

📄 arithmeticanalyzer.cs

📁 Grammatica是一个C#和Java的语法分析程序生成器(编译器的编译器)。它可以用LL(k)语法创建可读的和带有注释的源代码。它也支持创建一个运行时语法分析器
💻 CS
📖 第 1 页 / 共 2 页
字号:
         * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterRightParen(Token node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitRightParen(Token node) {            return node;        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterNumber(Token node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitNumber(Token node) {            return node;        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterIdentifier(Token node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitIdentifier(Token node) {            return node;        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterExpression(Production node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitExpression(Production node) {            return node;        }        /**         * <summary>Called when adding a child to a parse tree         * node.</summary>         *          * <param name='node'>the parent node</param>         * <param name='child'>the child node, or null</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void childExpression(Production node, Node child) {            node.AddChild(child);        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterExpressionRest(Production node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitExpressionRest(Production node) {            return node;        }        /**         * <summary>Called when adding a child to a parse tree         * node.</summary>         *          * <param name='node'>the parent node</param>         * <param name='child'>the child node, or null</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void childExpressionRest(Production node, Node child) {            node.AddChild(child);        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterTerm(Production node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitTerm(Production node) {            return node;        }        /**         * <summary>Called when adding a child to a parse tree         * node.</summary>         *          * <param name='node'>the parent node</param>         * <param name='child'>the child node, or null</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void childTerm(Production node, Node child) {            node.AddChild(child);        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterTermRest(Production node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitTermRest(Production node) {            return node;        }        /**         * <summary>Called when adding a child to a parse tree         * node.</summary>         *          * <param name='node'>the parent node</param>         * <param name='child'>the child node, or null</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void childTermRest(Production node, Node child) {            node.AddChild(child);        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterFactor(Production node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitFactor(Production node) {            return node;        }        /**         * <summary>Called when adding a child to a parse tree         * node.</summary>         *          * <param name='node'>the parent node</param>         * <param name='child'>the child node, or null</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void childFactor(Production node, Node child) {            node.AddChild(child);        }        /**         * <summary>Called when entering a parse tree node.</summary>         *          * <param name='node'>the node being entered</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterAtom(Production node) {        }        /**         * <summary>Called when exiting a parse tree node.</summary>         *          * <param name='node'>the node being exited</param>         *          * <returns>the node to add to the parse tree</returns>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public Node exitAtom(Production node) {            return node;        }        /**         * <summary>Called when adding a child to a parse tree         * node.</summary>         *          * <param name='node'>the parent node</param>         * <param name='child'>the child node, or null</param>         *          * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void childAtom(Production node, Node child) {            node.AddChild(child);        }    }}

⌨️ 快捷键说明

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