php-rs-parser 0.22.0

Fast PHP parser producing a typed AST
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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.

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

Part of the [rust-php-parser](https://github.com/jorgsowa/rust-php-parser) workspace. See the [main README](https://github.com/jorgsowa/rust-php-parser#readme) for the full guide, and [docs.rs/php-rs-parser](https://docs.rs/php-rs-parser) for the API reference.

## License

BSD 3-Clause