I have a lexer and parser for a custom language in python but due to some reason I need to use JS too. First I thought that I would build the two functions ( lexer and parser ) in JS again but it was possible only in Python.
Is there any way in which I could call the two Python functions in my JS code. I saw other questions on Stack Overflow but I want to be able to send arguments to the functions and get back data from those functions.
Please suggest any trick or method I can use.