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

📄 regexpanalyzer.cs

📁 Grammatica是一个C#和Java的语法分析程序生成器(编译器的编译器)。它可以用LL(k)语法创建可读的和带有注释的源代码。它也支持创建一个运行时语法分析器
💻 CS
📖 第 1 页 / 共 2 页
字号:
         * <exception cref='ParseException'>if the node analysis         * discovered errors</exception>         */        public void enterPlus(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 exitPlus(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 enterVerticalBar(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 exitVerticalBar(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 enterDot(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 exitDot(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 enterComma(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 exitComma(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 enterChar(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 exitChar(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 enterExpr(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 exitExpr(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 childExpr(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 enterFact(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 exitFact(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 childFact(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);        }        /**         * <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 enterAtomModifier(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 exitAtomModifier(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 childAtomModifier(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 enterCharacterSet(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 exitCharacterSet(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 childCharacterSet(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 enterCharacter(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 exitCharacter(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 childCharacter(Production node, Node child) {            node.AddChild(child);        }    }}

⌨️ 快捷键说明

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