Victor Porof
419db388da
Relax whitespace rules for Infinity and NaN
...
Signed-off-by: Victor Porof <vporof@mozilla.com>
2017-02-04 08:45:02 +01:00
Jordan Santell
0b20d7691b
Parse and display EDN values for NaN, +Infinity and -Infinity. Fixes #232 ( #238 ) r=victorporof
2017-02-03 10:14:23 -08:00
Victor Porof
9ee0ac8e00
Unify and generalize keywords and symbols parsing
...
Signed-off-by: Victor Porof <vporof@mozilla.com>
2017-02-03 09:06:42 +01:00
Victor Porof
72da5722ae
Update rustpeg to latest version and follow new syntax and formatting rules
...
Signed-off-by: Victor Porof <vporof@mozilla.com>
2017-02-03 09:06:42 +01:00
Nick Alexander
ab041291fb
edn: Bound values by optional whitespace; treat comma as whitespace.
2017-01-18 08:34:27 -08:00
Nick Alexander
247035cc9b
edn: Allow comments.
...
EDN supports only one type of comment: initiated by ; and lasting
until the end of the current line or the end of the input stream.
2017-01-18 08:34:27 -08:00
Richard Newman
a152e60040
Read EDN keywords and symbols as rich types. Fixes #154 . r=nalexander
2017-01-12 09:09:48 -08:00
Joe Walker
c4735119c4
Implement a basic EDN parser. ( #149 ) r=rnewman,bgrins,nalexander
...
The parser mostly works and has a decent test suite. It parses all the
queries issued by the Tofino UAS, with some caveats. Known flaws:
* No support for tagged elements, comments, discarded elements or "'".
* Incomplete support for escaped characters in strings and the range of
characters that are allowed in keywords and symbols.
* Possible whitespace handling problems.
2017-01-11 13:03:04 -08:00