yarpl 0.0.1

Yet Another Rust Parsing Library
Documentation

yarpl is Yet Another Parsing Library which uses declarative macros.

Each macro uses a modified function declaration syntax and will expand to a function with the type fn (String, usize) -> ParseResult.

Usage

yarpl macros will take an identifier, then a block containing that parser's one or more children.

For example, parsing a simple terminal symbol can be done by calling the [just!] macro like so:

just!( pub plus { "+"; } ); 

Then, just call the function with some source [String] and an index.

let result = plus( "+".to_owned(), 0 );

assert!( result.is_ok() );