No description
  • Rust 99.6%
  • Nix 0.4%
Find a file
2020-12-07 21:35:14 +01:00
.github/workflows ci 2020-12-02 00:32:21 +01:00
examples handle null 2020-12-02 23:23:01 +01:00
src more complete float parsing 2020-12-07 21:35:14 +01:00
.gitignore init repo 2020-12-01 17:44:52 +01:00
Cargo.toml implement display for Key and Value 2020-12-04 16:48:30 +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(())
}