Search in sources :

Example 1 with HL7QueryLexer

use of org.apache.nifi.hl7.query.antlr.HL7QueryLexer in project nifi by apache.

the class HL7Query method createTokenStream.

private static CommonTokenStream createTokenStream(final String expression) throws HL7QueryParsingException {
    final CharStream input = new ANTLRStringStream(expression);
    final HL7QueryLexer lexer = new HL7QueryLexer(input);
    return new CommonTokenStream(lexer);
}
Also used : ANTLRStringStream(org.antlr.runtime.ANTLRStringStream) CommonTokenStream(org.antlr.runtime.CommonTokenStream) HL7QueryLexer(org.apache.nifi.hl7.query.antlr.HL7QueryLexer) CharStream(org.antlr.runtime.CharStream)

Aggregations

ANTLRStringStream (org.antlr.runtime.ANTLRStringStream)1 CharStream (org.antlr.runtime.CharStream)1 CommonTokenStream (org.antlr.runtime.CommonTokenStream)1 HL7QueryLexer (org.apache.nifi.hl7.query.antlr.HL7QueryLexer)1