https://github.com/shader-slang/slang
Raw File
Tip revision: 668078ac8be89e55c8e13ac429c4b0e63fb604dc authored by Tim Foley on 17 January 2019, 19:43:20 UTC
Fix diagnostic output for command-line slangc (#783)
Tip revision: 668078a
parser.h
#ifndef RASTER_RENDERER_PARSER_H
#define RASTER_RENDERER_PARSER_H

#include "lexer.h"
#include "compiler.h"
#include "syntax.h"

namespace Slang
{
    // Parse a source file into an existing translation unit
    void parseSourceFile(
        TranslationUnitRequest*         translationUnit,
        TokenSpan const&                tokens,
        DiagnosticSink*                 sink,
        RefPtr<Scope> const&            outerScope);

    RefPtr<Expr> parseTypeFromSourceFile(TranslationUnitRequest*         translationUnit,
        TokenSpan const&                tokens,
        DiagnosticSink*                 sink,
        RefPtr<Scope> const&            outerScope);

    RefPtr<ModuleDecl> populateBaseLanguageModule(
        Session*        session,
        RefPtr<Scope>   scope);
}

#endif
back to top