io.nosqlbench.generators.cql.lang.ParserForCql Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cqld3-shaded Show documentation
Show all versions of driver-cqld3-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/,
using version 3.* of the DataStax Driver for Apache Cassandra
package io.nosqlbench.generators.cql.lang;
import io.nosqlbench.generators.cql.generated.CqlLexer;
import io.nosqlbench.generators.cql.generated.CqlParser;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.Lexer;
public class ParserForCql {
public static void parse(String input) {
CharStream instream = CharStreams.fromString(input);
Lexer lexer = new CqlLexer(instream);
CommonTokenStream commonTokenStream = new CommonTokenStream(lexer);
CqlParser cqlParser = new CqlParser(commonTokenStream);
cqlParser.addParseListener(new CQLAstBuilder());
CqlParser.RootContext root = cqlParser.root();
}
// public static String fingerprint(String input) {
//
// }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy