Java to PHP Compiler
Java to PHP Compiler
I had this crazy idea like some years ago.. I wasn't expecting it be factible, and there's still some semantic problems with this approach Anyways, the whole idea was to take some java source, generate an AST, and output it back as syntactically correct PHP. why? 50% fun + 50% exploration So I have this really basic compiler, which can roughly output its own code; what's still missing? - static vs instance detection (-> vs ::) - class' properties - method visibility - enums - inner types - annonymous classes - dealing with method overriding There's a huge gap in the semantic area (eg: String.format vs sprintf ) that is way out of scope for this hack. Source: https://gist.github.com/eridal/a850a8a665a255b74d2c
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Incorrect prediction on native model
Similar products
Iterated Prisoner's Dilemma (in PHP)
I wrote a SCSS compiler in PHP
PHP lib for Buffer - bufferapp-php
My standalone PHP Debugger
Bootstrap 3 and PHP put together
Expressjs implemented in PHP
Metaprogramming in PHP without eval. Still evil? Hells yeah it is.
AST for PCRE Regex in PHP
Method hooking in PHP
Concurrent BDD in PHP