public static FEEL_1_1Parser parse(FEELEventListenersManager eventsManager, String source, Map<String, Type> inputVariableTypes, Map<String, Object> inputVariables, Collection<FEELFunction> additionalFunctions, List<FEELProfile> profiles, FEELTypeRegistry typeRegistry) {
        CharStream input = CharStreams.fromString(source);
        FEEL_1_1Lexer lexer = new FEEL_1_1Lexer( input );
        CommonTokenStream tokens = new CommonTokenStream( lexer );
        FEEL_1_1Parser parser = new FEEL_1_1Parser( tokens );

        ParserHelper parserHelper = new ParserHelper(eventsManager);
        additionalFunctions.forEach(f -> parserHelper.getSymbolTable().getBuiltInScope().define(f.getSymbol()));
        parser.setHelper(parserHelper);
        parser.setErrorHandler( new FEELErrorHandler() );
        parser.removeErrorListeners(); // removes the error listener that prints to the console
        parser.addErrorListener( new FEELParserErrorListener( eventsManager ) );

        // pre-loads the parser with symbols
        defineVariables( inputVariableTypes, inputVariables, parser );
        
        if (typeRegistry != null) {
            parserHelper.setTypeRegistry(typeRegistry);
        }

        return parser;
    }
@Test
    void between() {
        String inputExpression = "x between 10+y and 3**z";
        BaseNode between = parse( inputExpression );

        assertThat( between).isInstanceOf(BetweenNode.class);
        assertThat( between.getResultType()).isEqualTo(BuiltInType.BOOLEAN);
        assertThat( between.getText()).isEqualTo(inputExpression);

        BetweenNode btw = (BetweenNode) between;
        assertThat( btw.getValue()).isInstanceOf(NameRefNode.class);
        assertThat( btw.getValue().getText()).isEqualTo("x");

        assertThat( btw.getStart()).isInstanceOf(InfixOpNode.class);
        assertThat( btw.getStart().getText()).isEqualTo( "10+y");

        assertThat( btw.getEnd()).isInstanceOf(InfixOpNode.class);
        assertThat( btw.getEnd().getText()).isEqualTo( "3**z");
    }