Sha256: 9ec38cb3083aeb5f11ab309f28f6fcd725dd4ebd6c6f9bc5349ab071e64252f8

Contents?: true

Size: 1.07 KB

Versions: 8

Compression:

Stored size: 1.07 KB

Contents

//
//  CSnowcrash.h
//  snowcrash
//  C Implementation of Snowcrash.h for binding purposes
//
//  Created by Ali Khoramshahi on 13/6/14.
//  Copyright (c) 2014 Apiary Inc. All rights reserved.
//

#ifndef SC_C_SNOWCRASH_H
#define SC_C_SNOWCRASH_H

#include "CSourceAnnotation.h"
#include "CBlueprint.h"

#ifdef __cplusplus
extern "C" {
#endif

    /**
     *  \This is C interface for snowcrash parser.
     *
     *  \param source        A textual source data to be parsed.
     *  \param options       Parser options. Use 0 for no addtional options.
     *  \param result        returns the pointer to result report.
     *  \param blueprint     returns the pointer to blueprint AST.
     *
     *  \return Error status code. Zero represents success, non-zero a failure.
     *
     *  \this function will allocate `result` and `bluepring`, for deallocation `sc_blueprint_free` and `sc_result_free` should be called.
     */
    SC_API int sc_c_parse(const char* source, sc_blueprint_parser_options option, sc_result_t** result, sc_blueprint_t** blueprint);

#ifdef __cplusplus
}
#endif

#endif

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
redsnow-0.1.6 ext/snowcrash/src/csnowcrash.h
redsnow-0.1.5 ext/snowcrash/src/csnowcrash.h
redsnow-0.1.4 ext/snowcrash/src/csnowcrash.h
redsnow-0.1.3 ext/snowcrash/src/csnowcrash.h
redsnow-0.1.2 ext/snowcrash/src/csnowcrash.h
redsnow-0.1.1 ext/snowcrash/src/csnowcrash.h
redsnow-0.1.0 ext/snowcrash/src/csnowcrash.h
redsnow-0.0.8 ext/snowcrash/src/csnowcrash.h