summaryrefslogtreecommitdiffstats
path: root/source/slang/parser.h
blob: 90af69158f82d1da75268a3f5b0ecc9d3257ef08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef RASTER_RENDERER_PARSER_H
#define RASTER_RENDERER_PARSER_H

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

namespace Slang
{
    namespace Compiler
    {
        // 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