php-parser-rs 0.1.3

A handwritten recursive-descent parser for PHP written in Rust
Documentation
1
2
3
4
5
6
7
8
use schemars::schema_for;

use php_parser_rs::parser::ast::Program;

fn main() {
    let schema = schema_for!(Program);
    println!("{}", serde_json::to_string_pretty(&schema).unwrap());
}