Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.

Something went wrong with that request. Please try again.