phpGrammar
I’ve recently becoming interested in porting legacy PHP sites to JSPs. It seemed to me that one of the hardest parts of this problem was parsing the PHP code. Once a parse tree was created, the next step would be to emit equivalent JSP code. I went looking for an ANTL4 grammar for PHP,…