piston_meta
A DSL parsing library for human readable text documents
Notice: Parsing is supported but composing is not implemented yet.
"Hello world" in Piston-Meta
Piston-Meta allows parsing into any structure implementing MetaReader
, for example Tokenizer
.
Tokenizer
stores the tree structure in a flat Vec
with "start node" and "end node" items.
extern crate piston_meta;
use *;
How does it work?
- Piston-Meta contains composable rules that can parse most human readable text formats.
- Piston-Meta knows how to parse and convert to its own rules, known as "bootstrapping".
- Therefore, you can tell Piston-Meta how to parse other text formats using a meta language!