Sha256: 85c3d1a3ed4e77fc0f1771d67db58a6cc490770e90dff2e7c4b5c284c9b20358

Contents?: true

Size: 1.26 KB

Versions: 1

Compression:

Stored size: 1.26 KB

Contents

//
//  snowcrash.h
//  snowcrash
//
//  Created by Zdenek Nemec on 4/2/13.
//  Copyright (c) 2013 Apiary Inc. All rights reserved.
//

#ifndef SNOWCRASH_H
#define SNOWCRASH_H

#include "BlueprintSourcemap.h"
#include "SourceAnnotation.h"
#include "SectionParser.h"

/**
 *  API Blueprint Parser Interface
 *  ------------------------------
 *
 *  This is the parser's entry point.
 *
 *  For Snow Crash users, this is the only interface to use.
 *
 *  For binding writers, this is the point to start wrapping.
 *  Refer to https://github.com/apiaryio/snowcrash/wiki/Writing-a-binding 
 *  for details on how to write a Snow Crash binding.
 */

namespace snowcrash {
    
    /**
     *  \brief Parse the source data into a blueprint abstract source tree (AST).
     *
     *  \param source        A textual source data to be parsed.
     *  \param options       Parser options. Use 0 for no additional options.
     *  \param report        Parsing report.
     *  \param blueprint     Parsed blueprint AST.
     *  \param blueprintSM   Blueprint sourcemap AST
     *  \return Error status code. Zero represents success, non-zero a failure.
     */
    int parse(const mdp::ByteBuffer& source,
              BlueprintParserOptions options,
              ParseResult<Blueprint>& out);
}

#endif

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
redsnow-0.2.1 ext/snowcrash/src/snowcrash.h