I have a site written in PHP, the site accepts code fragments written in different programming languages (Java and C #), and performs some static analysis and returns the results to the user. I already wrote different analyzers for Java and C # respectively. The Java parser is written in Java; C # parser is written in C #.
My problem is how the PHP website can interact effectively with parsers written in different languages. That is: when a PHP website receives some Java code, it can call a Java parser, etc. I can, of course, use PHPs exec to start the analyzer process, but it is too slow.
source share