telepath / com.github.giedomak.telepath.staticparser.rpq / RPQVisitorParser

RPQVisitorParser

class RPQVisitorParser : RPQBaseVisitor<LogicalPlan> (source)

Parse the RPQ ANTLR4 AST into our internal LogicalPlan model.

Auto-generated ANTLR files are stored in target/generated-sources/antlr4.

We use the Visitor approach instead of the Listener approach. Inspiration: http://jakubdziworski.github.io/java/2016/04/01/antlr_visitor_vs_listener.html

Constructors

<init>

RPQVisitorParser()

Parse the RPQ ANTLR4 AST into our internal LogicalPlan model.

Functions

parse

fun parse(query: Query): LogicalPlan

This is the main method which we need to call if we want to parse a RPQ.