Crate mpc [−] [src]
This crate provides simple bindings for orangeduck's mpc library. This is still a work in progress and contains a modified version of mpc and some temporary glue code
Modules
colors |
Contains consts for ANSI color escape sequences |
glue |
Contains the rust-side of glue code.
The main purpose of the code is to avoid having to
interface with a C union in Rust. The main offender
is |
macros |
Contains some nice macros to help with needed FFI and parser creation The str_c! and c_str! macros exist because ownership issues |
Macros
c_str |
Convert a rustic string (whether |
dfs |
Dereference pointer and convert struct member |
dfu |
Dereference pointer and convert struct member |
g_string |
simulate C's compile time string literal concatenation to allow copy-pasta of mpc
grammars written in C without any hassle
# Usage
|
parser |
Create a |
run_parser |
Runs a parser prepared with |
str_c |
Convert a C's |
trace |
|
traceln |
|