Crate parser_c []

Very work-in-progress C parser, ported from Haskell's language-c.

extern crate parser_c;

use parser_c::parse;

const INPUT: &'static str = r#"

int main() {
    printf("hello world!");
    return 0;
}

"#;

fn main() {
    match parse(INPUT, "simple.c") {
        Err(err) => {
            panic!("error: {:?}", err);
        }
        Ok(ast) => {
            println!("success: {:?}", ast);
        }
    }
}

Modules

data
parser
support
syntax

Macros

__assign
__concatMap
__map

Functions

parse

Basic public API. Accepts C source and a filename.

parseCFilePre