No description
  • Rust 99.6%
  • Nix 0.4%
Find a file
2020-12-13 15:03:33 +01:00
.github/workflows ci 2020-12-02 00:32:21 +01:00
benches also optimize single quoted strings 2020-12-08 21:36:08 +01:00
examples handle null 2020-12-02 23:23:01 +01:00
src the bit of performance is not worth this unsafe 2020-12-13 15:03:33 +01:00
.gitignore init repo 2020-12-01 17:44:52 +01:00
Cargo.toml optimize double quota string literals 2020-12-08 21:32:46 +01:00
README.md basic readme, cleanup token error 2020-12-02 00:25:41 +01:00

php-literal-parser

parser for php literals.

Usage

use php_literal_parser::parse;
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let map = parse(r#"["foo" => true, "nested" => ['foo' => false]]"#)?;
    assert_eq!(map["foo"], true);
    assert_eq!(map["nested"]["foo"], false);
    Ok(())
}