Skip to content

endel/galapagos

This branch is 15 commits ahead of camspiers/galapagos:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2b389ba · Mar 7, 2015

History

38 Commits
Mar 7, 2015
Mar 7, 2015
Dec 28, 2014
Jul 20, 2013
Jul 20, 2013
Dec 30, 2014
Jul 24, 2013
Dec 30, 2014
Dec 30, 2014
Jul 26, 2013
Jul 24, 2013

Repository files navigation

Galapagos

Evolutionary language transformation. Fork of igorw's initial work.

Read the related blog post.

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

Missing features

5.4

  • Binary number format
  • Closure rebinding

Edge cases:

  • 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.

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.

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?

About

Evolutionary language transformation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%