2017 © Pedro Peláez
 

library galapagos

image

endel/galapagos

  • Saturday, March 7, 2015
  • by endel
  • Repository
  • 3 Watchers
  • 11 Stars
  • 375 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Galapagos

Evolutionary language transformation. Fork of igorw's initial work., (*1)

Read the related blog post., (*2)

Backport existing PHP features to previous versions through AST compilation. Inspired by lisp macros. Using the incredible nikic/PHP-Parser., (*3)

Missing features

5.4

  • Binary number format
  • Closure rebinding

Edge cases:, (*4)

  • Calling private methods from within closure
  • Ensure $that gets passed to nested closures

State

There needs to be a strategy for managing state. A trait transformer needs to keep track of the traits it found. That is currently missing., (*5)

Preservation

There should be a way to preserve existing code formatting, especially for code that wasn't actually modified. Instead of pretty-printing everything, only changed parts of the AST should be changed in source. Three-way-diff may help with this., (*6)

Line numbers

Is there any way to do something like source maps to refer to the original line numbers, so that code remains at all debuggable?, (*7)

The Versions

07/03 2015

dev-master

9999999-dev

  Sources   Download

The Requires

 

The Development Requires