regexpanalyzer.cs

来自「Grammatica是一个C#和Java的语法分析程序生成器(编译器的编译器)。」· CS 代码 · 共 840 行 · 第 1/2 页

CS
840
字号
         * <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 + =
减小字号Ctrl + -
显示快捷键?