Crate lrpeg[][src]

Functions

build_parser

Generate a parser module for the peg described in source. The result is a rust module as String.

process_files

This function is supposed to called from a crate build.rs. You pass in the directory where your .peg files reside (“src/” for example), and for each of those, an .rs file with the generated parser will be created in the out directory. You generally want this to be in cargo’s OUT_DIR.