No description, website, or topics provided.
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
datafetch.php
generators-data.php
generators-prime.php
utils.php
xhp-classes.php
xhp-html.php
xhp-points.php

README.md

hiphop-samples

This provides some examples of HipHop-specific extensions, especially XHP and generators. To enable it, pass -v Eval.EnableHipHopSyntax=true to hphpi or hhvm.

xhp-html.php: An example of an HTML-like use of XHP. xhp-points.php: XHP in a different domain: 2d geometry.

generators-prime.php: Demonstrating generators over an infinite collection. generators-data.php: A more realistic use of generators to make non-blocking I/O more readable.

datafetch.php: utilities for generators-data.php xhp-classes.php: the html micro-library xhp-html.php uses. utils.php: a couple other utility functions.