blob: bcc0fb6e937522027396c409d4d03ffc58ae6019 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef SLANG_PARSER_H
#define SLANG_PARSER_H
#include "slang-lexer.h"
#include "slang-compiler.h"
#include "slang-syntax.h"
namespace Slang
{
// Parse a source file into an existing translation unit
void parseSourceFile(
ASTBuilder* astBuilder,
TranslationUnitRequest* translationUnit,
TokenSpan const& tokens,
DiagnosticSink* sink,
RefPtr<Scope> const& outerScope);
Expr* parseTermFromSourceFile(
ASTBuilder* astBuilder,
TokenSpan const& tokens,
DiagnosticSink* sink,
RefPtr<Scope> const& outerScope,
NamePool* namePool,
SourceLanguage sourceLanguage);
ModuleDecl* populateBaseLanguageModule(
ASTBuilder* astBuilder,
RefPtr<Scope> scope);
}
#endif
|