php-rs-parser 0.24.1

Fast PHP parser producing a typed AST
Documentation

php-rs-parser

Fast, fault-tolerant PHP parser producing a typed AST with source spans. Covers PHP 7.4–8.5 syntax (plus PHP 8.6 partial function application) and recovers from syntax errors.

let result = php_rs_parser::parse("<?php echo 'Hello, world!';");
assert!(result.errors.is_empty());
println!("{:#?}", result.program);

Part of the rust-php-parser workspace. See the main README for the full guide, and docs.rs/php-rs-parser for the API reference.

License

BSD 3-Clause