utkarshkukreti / edn.rs

An EDN (Extensible Data Notation) parser in Rust.
48 stars 12 forks source link

feat(Value::Char): added char support #9

Closed benstigsen closed 4 years ago

benstigsen commented 4 years ago

This adds support for Value::Char which previously wasn't implemented. Now it's possible to do:

let mut parser = Parser::new("'x' 'Hello World!' '");
assert_eq!(parser.read(), Some(Ok(Value::Char('x'))));
assert_eq!(parser.read(), Some(Ok(Value::String("Hello World!"))));
assert_eq!(parser.read(), Some(Ok(Value::Char('\''))));
utkarshkukreti commented 4 years ago

Hi. I don't see this syntax on this page: https://github.com/edn-format/edn. That's the official spec right?