summaryrefslogtreecommitdiff
path: root/source/slang/parser.h
blob: cc7649e959210dfac6a7b97bfd4ae28188cb0abb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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(
        ProgramSyntaxNode*  translationUnitSyntax,
        CompileOptions&     options,
        TokenSpan const&    tokens,
        DiagnosticSink*     sink,
        String const&       fileName,
        RefPtr<Scope> const&outerScope);
}

#endif