#parser #brackets #tree

bracket_parse

simple parser for bracketed lists with quoted and unquoted strings -- Now deprecated, favouring Gobble instead which can do everything this does much tidier

5 releases

Uses old Rust 2015

0.1.4 Jun 11, 2020
0.1.3 Aug 3, 2018
0.1.2 Aug 3, 2018
0.1.1 Aug 2, 2018
0.1.0 Aug 2, 2018

#2183 in Parser implementations

MIT license

16KB
410 lines

Bracket Parse

This is intended to convert a bracketd lisp/prolog like string into a tree where each bracket is considered a parent of some kind

Coming in v0.1.4

Handle Jsonish Objects - May need another Variant

Changes in v0.1.3

Iterator on &Bracket

Changes v0.1.2

Added tail_n for tail chain skipping as tail().tail() drops the borrow. Added tail_h for tail(n).head(), again to avoid borrow drops().

Impl Display for Bracket //TODO Escape strings safely

No runtime deps