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

antlr.tree_format.TreeFormatVisitor Maven / Gradle / Ivy

Go to download

Treepat is a language to recognise patterns in trees in a similar way as regular expressions recognize patterns in strings. Treepat includes analogous operators to regex union, concatenation, and closure, which are extended to the notion of trees.

There is a newer version: 2.0.0
Show newest version
// Generated from antlr/tree_format/TreeFormat.g4 by ANTLR 4.1
package antlr.tree_format;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;

/**
 * This interface defines a complete generic visitor for a parse tree produced
 * by {@link TreeFormatParser}.
 *
 * @param  The return type of the visit operation. Use {@link Void} for
 * operations with no return type.
 */
public interface TreeFormatVisitor extends ParseTreeVisitor {
	/**
	 * Visit a parse tree produced by {@link TreeFormatParser#subtree}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitSubtree(@NotNull TreeFormatParser.SubtreeContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreeFormatParser#node}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitNode(@NotNull TreeFormatParser.NodeContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreeFormatParser#sibling}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitSibling(@NotNull TreeFormatParser.SiblingContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreeFormatParser#information}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitInformation(@NotNull TreeFormatParser.InformationContext ctx);

	/**
	 * Visit a parse tree produced by {@link TreeFormatParser#child}.
	 * @param ctx the parse tree
	 * @return the visitor result
	 */
	T visitChild(@NotNull TreeFormatParser.ChildContext ctx);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy