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 division() {
        String inputExpression = "y / 5 * ( x )";
        BaseNode infix = parse( inputExpression, mapOf(entry("x", BuiltInType.NUMBER), entry("y", BuiltInType.NUMBER)) );

        assertThat( infix).isInstanceOf(InfixOpNode.class);
        assertThat( infix.getResultType()).isEqualTo(BuiltInType.NUMBER);
        assertThat( infix.getText()).isEqualTo(inputExpression);

        InfixOpNode mult = (InfixOpNode) infix;
        assertThat( mult.getLeft()).isInstanceOf(InfixOpNode.class);
        assertThat( mult.getLeft().getText()).isEqualTo( "y / 5");

        InfixOpNode div = (InfixOpNode) mult.getLeft();
        assertThat( div.getLeft()).isInstanceOf(NameRefNode.class);
        assertThat( div.getLeft().getText()).isEqualTo("y");

        assertThat( div.getOperator()).isEqualTo(InfixOperator.DIV);

        assertThat( div.getRight()).isInstanceOf(NumberNode.class);
        assertThat( div.getRight().getText()).isEqualTo("5");

        assertThat( mult.getOperator()).isEqualTo(InfixOperator.MULT);

        assertThat( mult.getRight()).isInstanceOf(NameRefNode.class);
        assertThat( mult.getRight().getText()).isEqualTo("x");
    }