All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pingbu.nlp.SubtreeEmpty Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package pingbu.nlp;

/**
 * 空子树,用于解析到语法描述错误时为语法树提供容错
 * 
 * @author pingbu
 */
class SubtreeEmpty extends Subtree {

    private static class Cursor extends Subtree.Cursor {
        public Cursor(Subtree.Cursor returnCursor) {
            super(returnCursor);
        }

        @Override
        public void navigate(Navigator navigator) {
            navigateReturn(navigator);
        }
    }

    @Override
    public Subtree.Cursor newCursor(Subtree.Cursor returnCursor) {
        return new Cursor(returnCursor);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy