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

📄 grammaranalyzer.java

📁 Grammatica是一个C#和Java的语法分析程序生成器(编译器的编译器)。它可以用LL(k)语法创建可读的和带有注释的源代码。它也支持创建一个运行时语法分析器
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
     * @param node           the node being entered     *      * @throws ParseException if the node analysis discovered errors     */    protected void enterUnterminatedDirective(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 exitUnterminatedDirective(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 enterEquals(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 exitEquals(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 enterLeftParen(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 exitLeftParen(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 enterRightParen(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 exitRightParen(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 enterLeftBrace(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 exitLeftBrace(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 enterRightBrace(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 exitRightBrace(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 enterLeftBracket(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 exitLeftBracket(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 enterRightBracket(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 exitRightBracket(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 enterQuestionMark(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 exitQuestionMark(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 enterPlusSign(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 exitPlusSign(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 enterAsterisk(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 exitAsterisk(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 enterSemicolon(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 exitSemicolon(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 enterIdentifier(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 exitIdentifier(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 enterQuotedString(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 exitQuotedString(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 enterRegexp(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 exitRegexp(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 enterGrammar(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 exitGrammar(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 childGrammar(Production node, Node child)        throws ParseException {        node.addChild(child);    }

⌨️ 快捷键说明

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