regexpanalyzer.java

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

JAVA
810
字号
     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterPlus(Token node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitPlus(Token node) throws ParseException {        return node;    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterVerticalBar(Token node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitVerticalBar(Token node) throws ParseException {        return node;    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterDot(Token node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitDot(Token node) throws ParseException {        return node;    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterComma(Token node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitComma(Token node) throws ParseException {        return node;    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterNumber(Token node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitNumber(Token node) throws ParseException {        return node;    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterChar(Token node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitChar(Token node) throws ParseException {        return node;    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterExpr(Production node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitExpr(Production node) throws ParseException {        return node;    }    /**     * Called when adding a child to a parse tree node.     *      * @param node           the parent node     * @param child          the child node, or null     *      * @throws ParseException if the node analysis discovered errors     */    protected void childExpr(Production node, Node child)        throws ParseException {        node.addChild(child);    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterTerm(Production node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitTerm(Production node) throws ParseException {        return node;    }    /**     * Called when adding a child to a parse tree node.     *      * @param node           the parent node     * @param child          the child node, or null     *      * @throws ParseException if the node analysis discovered errors     */    protected void childTerm(Production node, Node child)        throws ParseException {        node.addChild(child);    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterFact(Production node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitFact(Production node) throws ParseException {        return node;    }    /**     * Called when adding a child to a parse tree node.     *      * @param node           the parent node     * @param child          the child node, or null     *      * @throws ParseException if the node analysis discovered errors     */    protected void childFact(Production node, Node child)        throws ParseException {        node.addChild(child);    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterAtom(Production node) throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitAtom(Production node) throws ParseException {        return node;    }    /**     * Called when adding a child to a parse tree node.     *      * @param node           the parent node     * @param child          the child node, or null     *      * @throws ParseException if the node analysis discovered errors     */    protected void childAtom(Production node, Node child)        throws ParseException {        node.addChild(child);    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterAtomModifier(Production node)        throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitAtomModifier(Production node)        throws ParseException {        return node;    }    /**     * Called when adding a child to a parse tree node.     *      * @param node           the parent node     * @param child          the child node, or null     *      * @throws ParseException if the node analysis discovered errors     */    protected void childAtomModifier(Production node, Node child)        throws ParseException {        node.addChild(child);    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterCharacterSet(Production node)        throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitCharacterSet(Production node)        throws ParseException {        return node;    }    /**     * Called when adding a child to a parse tree node.     *      * @param node           the parent node     * @param child          the child node, or null     *      * @throws ParseException if the node analysis discovered errors     */    protected void childCharacterSet(Production node, Node child)        throws ParseException {        node.addChild(child);    }    /**     * Called when entering a parse tree node.     *      * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterCharacter(Production node)        throws ParseException {    }    /**     * Called when exiting a parse tree node.     *      * @param node           the node being exited     *      * @return the node to add to the parse tree     *      * @throws ParseException if the node analysis discovered errors     */    protected Node exitCharacter(Production node)        throws ParseException {        return node;    }    /**     * Called when adding a child to a parse tree node.     *      * @param node           the parent node     * @param child          the child node, or null     *      * @throws ParseException if the node analysis discovered errors     */    protected void childCharacter(Production node, Node child)        throws ParseException {        node.addChild(child);    }}

⌨️ 快捷键说明

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