Registry / build-tool / hhvm-hhast

hhvm-hhast

JSON →
library4.168.3phppackagistunverified

A mutable AST library for Hack with linting and code migrations.

composer require hhvm/hhast
INSTALL
IMPORT
SIG · HHVM-HHAST
H
hhvm-hhast
build-toolphpv4.168.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

File
use Facebook\HHAST\File;

Parse a Hack file into an AST and output its code.

<?hh use namespace Facebook\HHAST; $file = HHAST\File::fromPath('example.hack'); $ast = $file->getAST(); echo $ast->getCode();
Debug
Known issues
breakingThis package is for the Hack language and requires HHVM, not standard PHP.
fix
Ensure you are running HHVM and not PHP when using this package.
affects: >=4.0.0
Upgrade
Version history
4.168.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Meta
1
OpenAI (training)
1
Resources
hhvm-hhast — pip install hhvm-hhast · libregistry