Skip to content
This repository has been archived by the owner on Sep 30, 2021. It is now read-only.

Latest commit

 

History

History
40 lines (25 loc) · 848 Bytes

README.md

File metadata and controls

40 lines (25 loc) · 848 Bytes

Ready for happiness?

Basically helps to transform this source code:

Hphpy source

to php code:

PHP output

and that's it.

Adds some sugar for convenience, while it leaves, within possible, the php code intact.

Features

  • Break long-lines and params
  • Hard strings for Heredoc/Newdoc
  • Smart CONSTANT definitions
  • Destructuring assignment
  • Weak-scope lambdas
  • Block comments

Known issues

  • Currently on design and experimental phase, take care
  • Implicit return statement, parenthesis and braces where as possible
  • Weak symbol-as-string implementation using RegExp

Acknowledgments

Strongly inspired by Ruby, Python and CoffeeScript due its brevity, readability and expressiveness respectively.